What do you do when everything goes wrong with your RESTful API? You have many ways to indicate an API call failure, including the built-in status codes included in HTTP. Use these best practices to help developers with their API integration.
Good Error Codes and Messages
Don't Skimp on the Help
Client Needs to Rely on Graceful Error Handling
Tell Clients If They Can't Solve the Problem
How to Choose the Right Type of Error Codes
- 200 OK
- 400 Bad Request
- 500 Internal Server Error
- 401 Unauthorized
- 403 Forbidden
- RESTful API Design Part I: POST /EFF/YOU/THIS/IS/THE/RIGHT/URL
- RESTful API Design Part II: 418: I'm a Teapot, and Other Bad API Responses
- ERROR HANDLING: RESTFUL API DESIGN PART III
Cloud Elements platform is built on REST APIs. Our developer portal houses all of our documentation on authetication, pagination, error handling and more.