Skip to content

Commit

Permalink
Set 422 instead of 403 error code for invalid tx
Browse files Browse the repository at this point in the history
Closes #85
  • Loading branch information
Samuel committed Sep 21, 2021
1 parent 835e322 commit 81dc03c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ defmodule ArchEthicWeb.API.TransactionController do

_ ->
conn
|> put_status(403)
|> put_status(422)
|> json(%{status: "error - transaction may be invalid"})
end

Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule ArchEthic.MixProject do
def project do
[
app: :archethic,
version: "0.11.3",
version: "0.11.4",
build_path: "_build",
config_path: "config/config.exs",
deps_path: "deps",
Expand Down

0 comments on commit 81dc03c

Please sign in to comment.