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:
- What are REST API error handling best 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?
- Can a single Web Domain have multiple passwords? [closed]
- Is an entity body allowed for an HTTP DELETE request?
- Call a REST API in PHP
- Which HTTP methods match up to which CRUD methods?
- Error 415 Unsupported Media Type: POST not reaching REST if JSON, but it does if XML
- What is the difference between HTTP and REST?
- Should I use PATCH or PUT in my REST API?
- What is the difference between a web API and a web service?
- Can I pass non-string to WCF RESTful service using UriTemplate?