Envelope structure
Field descriptions
| Field | Type | Description | 
|---|---|---|
| success | boolean | Indicates whether the request succeeded. true for 2xx, false for others. | 
| statusCode | number | HTTP status code returned by the API. Mirrors the actual HTTP response status. | 
| message | string | Human-readable summary of the outcome. Defaults to a standard message based on status. | 
| data | T or null | Contains the actual response payload. null when no data is returned or on errors. | 
Example responses
✅ Success (200 OK)
🆕 Resource created (201 Created)
🚫 Validation error (422 Unprocessable Entity)
🧱 No content (204)
Next Steps
Status Codes
Explore all supported HTTP status codes, default messages, and their meanings.

