Created
March 16, 2018 10:02
-
-
Save filipveschool/b697dbb56263bf14500ee9212870d760 to your computer and use it in GitHub Desktop.
get responseentity httpstatus codes
This file contains hidden or 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
| /** | |
| * Get method: return responseentity => status OK | |
| * | |
| * Get method: return responseentity with no values => status NO_CONTENT | |
| * | |
| * Get method single retrieving nothing found : status NOT_FOUND | |
| * | |
| * Get method single retrieving : status OK | |
| * | |
| * post method : new object already exists => status CONFLICT | |
| * | |
| * post method: new object succesfully saved => status CREATED | |
| * | |
| * put method : update object that is null ==> status NOT_FOUND | |
| * | |
| * put method: update object succesfull => status OK | |
| * | |
| * delete method: object to be deleted is null ==> status NOT_FOUND | |
| * | |
| * delete method: object succesfully deleted ==> status NO_CONTENT | |
| */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment