Skip to content

Commit

Permalink
FIX: AccountNotFound invalid error code
Browse files Browse the repository at this point in the history
Actually, when the account is not found in Vault,
we return back to the client a 500 error, it's
supose to be a 404 NotFound http error.
This pull request do the changes to return the
proper error code.

- Send back 404 for AccountNotFound error

Fixes https://github.com/scality/Vault/issues/509
  • Loading branch information
alexandre-merle committed Aug 10, 2016
1 parent 78bef3c commit 6644df0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion errors/arsenalErrors.json
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@
"description": "The request was denied due to request throttling."
},
"AccountNotFound": {
"code": 500,
"code": 404,
"description": "No account was found in Vault, please contact your system administrator."
},
"_comment": "-------------- Special non-AWS S3 errors --------------",
Expand Down

0 comments on commit 6644df0

Please sign in to comment.