HTTP Status Code & Error Code
HTTP Status Code
HTTP Code
Description
200
Everything worked as expected
201
Successfully Created
Error Code
HTTP Status
Status Code
Description
400
400
Server encountered a request that violated validation constraint or invalid Http Method or invalid validation and so on
401
401
The user is unauthorized
404
404
The requested resources do not exist
422
422
Server understands the request but there are issues with provided data
500
500
Unexpected error occurred on the server side
Sample Error Responses
{
"errors": [
{
"message": "There was an issue with the data you provided. Please check again. pmt_s"
}
],
"status": 422,
"title": "Unprocessable Entity"
}{
"errors": [
{
"message": "phone_number size must be between 12 and 16"
},
{
"message": "phone_number must match \"\\+[0-9]+\""
}
],
"status": 400,
"title": "Constraint Violation"
}Last updated
Was this helpful?