Skip to content

Instantly share code, notes, and snippets.

@sunitparekh
Last active April 3, 2018 10:14
Show Gist options
  • Save sunitparekh/2d6f0024dd7023ee608da4e14eea9400 to your computer and use it in GitHub Desktop.
Save sunitparekh/2d6f0024dd7023ee608da4e14eea9400 to your computer and use it in GitHub Desktop.
Status: 404
Content-Type: application/json
{
"code": "NOT_FOUND",
"message": "Oops! Requested employee 123456 not found."
}
Status: 400
Content-Type: application/json
{
"code": "INVALID_INPUT",
"message": "Oops! Invalid data provided for employee."
"errors": [
{
"message": "Last name is required field.",
"field": "lastName"
},
{
"message": "Age of the employee should be greater than 18",
"field": "dateOfBirth"
}
]
}
Status: 401
Content-Type: application/json
{
"code": "UNAUTHORIZED_ACCESS",
"message": "Unauthorized access for the requested content."
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment