A great resource to pick the correct HTTP error code for your API:
http://www.codetinkerer.com/2015/12/04/choosing-an-http-status-code.html
An excerpt from the article:
Where to start:
2XX/3XX:
4XX:
5XX:
More Related Contents:
- REST API error return good practices [closed]
- REST API 404: Bad URI, or Missing Resource?
- Maximum length of HTTP GET request
- SOAP vs REST (differences)
- Understanding REST: Verbs, error codes, and authentication
- How do I upload a file with metadata using a REST web service?
- Secure Web Services: REST over HTTPS vs SOAP + WS-Security. Which is better? [closed]
- Patterns for handling batch operations in REST web services?
- Why would one use REST instead of SOAP based services? [closed]
- A message body writer for Java type, class myPackage.B, and MIME media type, application/octet-stream, was not found
- WSDL vs REST Pros and Cons
- Best way to support “application/x-www-form-urlencoded” post data with WCF?
- Rest vs. Soap. Has REST a better performance?
- Why do we need RESTful Web Services?
- How to secure RESTful web services?
- When is it appropriate to respond with a HTTP 412 error?
- REST web service WSDL? [duplicate]
- Calling REST web services from a classic asp page
- Non-CRUD operations in a RESTful service
- Jersey client exception: A message body writer was not found
- What are the benefits of using Nginx in front of a webserver for Go?
- What is the difference between POST and PUT in HTTP?
- JSON character encoding – is UTF-8 well-supported by browsers or should I use numeric escape sequences?
- HTTP status code for a partial successful request
- Spring, Jackson and Customization (e.g. CustomDeserializer)
- Load data from Webservice (asmx) to jqgrid. Please help me
- RESTful – What should a DELETE response body contain
- How to send post request to the below post method using postman rest client
- Response status code for searches in REST APIs
- Status code when deleting a resource using HTTP DELETE for the second time