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 OKNo response body needed (copy,204 No content is more appropriate.)tells why PUT failed ()- The HTTP status code for the successful break of a new resource
201 is createdNew 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 opposesfor 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 - The HTTP status code for the successful break of a new resource
- with natural language text in adverse body (eg English) / Li>
Comments
Post a Comment