Last active
April 3, 2018 10:14
-
-
Save sunitparekh/2d6f0024dd7023ee608da4e14eea9400 to your computer and use it in GitHub Desktop.
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: 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