Created
October 27, 2021 11:42
-
-
Save isratmir/6dcc17f286ddfd75010de9f4372d368a to your computer and use it in GitHub Desktop.
example of error responses
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"status": "error", | |
"data": { | |
"error_code": "not_authenticated" | |
} | |
} | |
{ | |
"status": "error", | |
"data": { | |
"error_code": "not_found" | |
} | |
} | |
{ | |
"status": "error", | |
"data": { | |
"error_code": "invalid", | |
"error_messages": [ | |
{ | |
"email": [ | |
"Email already exist" | |
] | |
}, | |
{ | |
"password": [ | |
"This password is too short. It must contain at least 9 characters.", | |
"This password is too common.", | |
"This password is entirely numeric." | |
] | |
}, | |
{ | |
"companyadmin": { | |
"phone": [ | |
"Phone number already exist" | |
] | |
} | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment