You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error status codes in a response body have to be more specific I suggest we use own status codes.
For example the endpoint user.authenticate can fail due to:
user does not exist (Not Found)
wrong password (Not Authenticated)
user is not from the node's organization (Decryption Failed)
So in the User Not Found case the response is a 400 Bad Request with following response body:
{
code: 1234,
message: "authentication failed: user does not exist"
}
This issue has been automatically marked as stale because it has not had activity for 30 days. It will be closed if no further activity occurs. Thank you for your contributions.
In GitLab by @Stezido on Mar 14, 2019, 14:39
The text was updated successfully, but these errors were encountered: