Skip to content

Instantly share code, notes, and snippets.

@filipveschool
Created March 16, 2018 10:02
Show Gist options
  • Select an option

  • Save filipveschool/b697dbb56263bf14500ee9212870d760 to your computer and use it in GitHub Desktop.

Select an option

Save filipveschool/b697dbb56263bf14500ee9212870d760 to your computer and use it in GitHub Desktop.
get responseentity httpstatus codes
/**
* 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