shlogg · Early preview
Sospeter Mong'are @msnmongare

HTTP Status Code Best Practices For API Success

HTTP status codes indicate API request results. 3-digit codes convey success, error or redirection. Use 201 for new resources, 400 for validation errors and 404 for not found resources.

HTTP Status Codes indicate the result of an API request.
They're represented as three-digit codes.
There are different types of HTTP status codes:

1xx informational responses
2xx success responses
3xx redirection responses
4xx client error responses
5xx server error responses

Which HTTP status code you should use depends on what you want to communicate to your API clients. They're used to communicate if the request was successful or not. HTTP status codes also carry semantic information.
Some of the most popular HTTP Status Codes are:

200 OK
400 Bad Request
404 Not Found
500 Internal Server...