About 935,000 results
Open links in new tab
  1. rest - 400 BAD request HTTP error code meaning? - Stack Overflow

    Oct 30, 2013 · In the case of a REST API with a JSON payload, 400's are typically, and correctly I would say, used to indicate that the JSON is invalid in some way according to the API …

  2. What are REST API error handling best practices? [closed]

    At this point (August, 2015) I do recommend that you use the HTTP Status code as part of your API. It is now much easier to see the return code when using frameworks than it was in the …

  3. http - REST API error code 500 handling - Stack Overflow

    I've had these issues mainly during high traffic periods of my application. I reduced them by reducing payloads i.e. reducing arrays and objects to only what I need to send, making my …

  4. In what circumstances a REST API should return HTTP Status 503

    Feb 18, 2017 · Keep in mind, in a REST model HTTP status codes aren't about describing the problem in your service; they instead describe an analogous condition in a document store. …

  5. HTTP response code for POST when resource already exists

    Sep 30, 2010 · The 422 Unprocessable Entity status code means the server understands the content type of the request entity (hence a 415 Unsupported Media Type status code is …

  6. API request throws a 302 status code -- how to solve/redirect

    Aug 30, 2019 · A well-behaved API should probably not issue 30X in response to a POST, but it is. The way to get around this is to make a new http request with the redirected URL. (You …

  7. What is "406-Not Acceptable Response" in HTTP? - Stack Overflow

    Jan 10, 2013 · In my Ruby on Rails application I tried to upload an image through the POSTMAN REST client in Base64 format. When I POST the image I am getting a 406 Not Acceptable …

  8. Is it correct to return 404 when a REST resource is not found?

    Nov 10, 2014 · Here's for 204. 204 No Content. The server has fulfilled the request but does not need to return an entity-body, and might want to return updated metainformation.

  9. REST: Mapping application errors to HTTP Status codes

    Mar 5, 2010 · What's an appropriate HTTP status code to return by a REST API service for a validation failure? 15 what http response code for rest service on put method when domain …

  10. rest - What's the most appropriate HTTP status code for an "item …

    404 status code automatically appears when the requested API is unavailable. Links that lead to a 404 page are often called broken or dead links and can be subject to link rot. 204 Status Code:

Refresh