Quantcast
Channel: HTTP status code for update and delete? - Stack Overflow
Browsing all 13 articles
Browse latest View live

Answer by Ahamed Rasheed for HTTP status code for update and delete?

Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content Explained briefly! Know more about status codes

View Article



Answer by Prince for HTTP status code for update and delete?

Here's some status code, which you should know for your kind of knowledge. 1XX Information Responses 100 Continue 101 Switching Protocols 102 Processing 103 Early Hints 2XX Success 200 OK 201 Created...

View Article

Answer by Ashutosh Kumar for HTTP status code for update and delete?

When a resource is modified, the response code should be 200 (“OK”). If the resource state changes in a way that changes the URI to the resource (for instance, a user account is renamed), the response...

View Article

Answer by Ivan for HTTP status code for update and delete?

In June 2014 RFC7231 obsoletes RFC2616. If you are doing REST over HTTP then RFC7231 describes exactly what behaviour is expected from GET, PUT, POST and DELETE

View Article

Answer by KCD for HTTP status code for update and delete?

Since the question delves into if DELETE "should" return 200 vs 204 it is worth considering that some people recommend returning an entity with links so the preference is for 200. "Instead of returning...

View Article


Answer by Alfonso Tienda for HTTP status code for update and delete?

Here are some Tips: DELETE 200 (if you want send some additional data in the Response) or 204 (recommended). 202 Operation deleted has not been committed yet. If there's nothing to delete, use 204 or...

View Article

Answer by pje for HTTP status code for update and delete?

In addition to 200 and 204, 205 (Reset Content) could be a valid response. The server has fulfilled the request and the user agent SHOULD reset the document view which caused the request to be sent ......

View Article

Image may be NSFW.
Clik here to view.

Answer by ЯegDwight for HTTP status code for update and delete?

Short answer: for both PUT and DELETE, you should send either 200 (OK) or 204 (No Content). Long answer: here's a complete decision diagram (click to magnify). Source:...

View Article


Answer by Ignacio Vazquez-Abrams for HTTP status code for update and delete?

RFC 2616 describes which status codes to use. And no, it's not always 200.

View Article


Answer by Daniel Vassallo for HTTP status code for update and delete?

For a PUT request: HTTP 200 or HTTP 204 should imply "resource updated successfully". For a DELETE request: HTTP 200 or HTTP 204 should imply "resource deleted successfully". HTTP 202 can also be...

View Article

HTTP status code for update and delete?

What status code should I set for UPDATE (PUT) and DELETE (e.g. product successfully updated)?

View Article

Answer by Rohit Parte for HTTP status code for update and delete?

{"VALIDATON_ERROR": {"code": 512,"message": "Validation error" },"CONTINUE": {"code": 100,"message": "Continue" },"SWITCHING_PROTOCOLS": {"code": 101,"message": "Switching Protocols" },"PROCESSING":...

View Article

Answer by Pratham for HTTP status code for update and delete?

Generally, 200 OK and 201 Created are the best suited for a successful PUT request.For DELETE method, 202 Accepted and 204 No Content would be the best choice.

View Article

Browsing all 13 articles
Browse latest View live




Latest Images