Status Codes
Every response from an HTTP API comes with a three-digit numeric code summarizing the processing result.
The Main Ranges
- 2xx (Success): Everything went as expected.
200 OK: Standard successful request.201 Created: New resource successfully created.
- 4xx (Client Error): The server didn't understand or couldn't process what you sent.
400 Bad Request: Invalid syntax.401 Unauthorized: Missing authentication.404 Not Found: The resource doesn't exist.
- 5xx (Server Error): The problem is not you, it's the backend.
500 Internal Server Error: Generic failure in server code.
In Heapi
Heapi visually highlights the status color so you can identify errors in milliseconds. Green for success, orange for warnings, and red for fatal errors.