resources - Should a RESTful 'PUT' operation return something -


I was wondering if there is nothing in the body of the reactions (empty) Returning PUT Operation people's opinion ? /p>

HTTP specification () has several recommendations that are applicable. Here's my explanation:

  • HTTP status code for a successful PUT update of an existing resource. 200 OK No response body needed (copy, 204 No content is more appropriate.)
  • The HTTP status code for the successful break of a new resource 201 is created New resources given in the Location Title area The specific URI and any other relevant URI and the response to the echo in the body. Not the metadata. ()
  • The HTTP status code 409 opposes for a put that is unsuccessful due to the 3 rd -party modification, between which the list of differences Current update and update resources in response to the attempt. HTTP status code for a failed code: 400 bad request tells why PUT failed ()
  • with natural language text in adverse body (eg English) / Li>

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -