Errors
We try to follow a standard structure for returning errors back to you. Errors are categorized into 2 Categories
- HTTP Exception : These errors are generated due to malformed request or limits being exceeded or any server side errors.
- Schema Validation Error : These errors are returned when you have added schema to a document or a bucket and we fail to verify the document against the schema.
Following is the structure we follow
{
"type":"HTTPException | ValidationError",
"message":"<error-message>"
}Status Codes
| Status Code | Meaning | Description |
|---|---|---|
| 200 | OK | The request has succeeded. |
| 201 | Created | The request has been fulfilled and a new resource has been created. |
| 400 | Bad Request | The server cannot process the request due to a client error. |
| 401 | Unauthorized | The request requires user authentication. |
| 403 | Forbidden | The server understood the request but refuses to authorize it. |
| 404 | Not Found | The requested resource could not be found. |
| 429 | Too Many Requests | The user has sent too many requests in a given amount of time. |
| 500 | Internal Server Error | The server encountered an unexpected condition. |
| 503 | Service Unavailable | The server is currently unavailable due to maintenance or overload. |