Using correct HTTP status codes is essential for RESTful API design. This reference lists the standard status codes and their intended usage.
| Code | Status Name | Intended API Usage |
|---|---|---|
| 200 | OK | Successful GET, PUT, or POST returning payload |
| 201 | Created | Successful POST resulting in resource creation |
| 204 | No Content | Successful DELETE or action with empty response body |
| 400 | Bad Request | Invalid JSON syntax, failed parameter validation |
| 401 | Unauthorized | Missing or invalid authentication token |
| 403 | Forbidden | Authenticated user lacks permissions |
| 404 | Not Found | Target resource or endpoint URL does not exist |
| 429 | Too Many Requests | Rate limit quota exceeded |
| 500 | Internal Server Error | Unhandled backend application exception |

