Skip to content

Instantly share code, notes, and snippets.

@isratmir
Created October 27, 2021 11:42
Show Gist options
  • Save isratmir/6dcc17f286ddfd75010de9f4372d368a to your computer and use it in GitHub Desktop.
Save isratmir/6dcc17f286ddfd75010de9f4372d368a to your computer and use it in GitHub Desktop.
example of error responses
{
"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