Last updated: Jun 08, 2026
Error Handling
Error Handlinglink
The Infraspeak API uses conventional HTTP response codes to indicate the success or failure of an API request. In general: codes in the 2xx range indicate success, while codes in the 4xx range indicate an error that failed given the information provided. Codes in the 5xx range indicate an error related to Infraspeak's servers (these are rare).
Error Response Formatlink
Errors return both an appropriate HTTP status code and response object which contains a http_code and message attribute describing the error. If it is related to a validation error, a properties attribute is included giving more context over the error. E.g.:
{
"status": "error",
"error": {
"http_code": 400,
"message": "Property validation error.",
"properties": {
"name": [
"You must provide a value for the name field."
],
"code": [
"You must provide a value for the code field."
]
}
}
}
Error Fieldslink
| Field | Type | Description |
|---|---|---|
status |
string | Always "error" for error responses |
http_code |
integer | HTTP status code |
message |
string | User-friendly error description |
properties |
object | Field-specific validation errors (optional) |
HTTP Status Codeslink
| Code | Name | Description |
|---|---|---|
| 400 | Bad Request | Occurs when invalid parameters (validation error, malformed JSON) are provided. For example, trying to create a resource without providing required fields. In this case, you can check the properties attribute on the response for more details. |
| 401 | Unauthorized | Authentication error. E.g.: missing, incorrect or invalid Access Token. |
| 403 | Forbidden | Permission denied (valid token, insufficient access). |
| 404 | Not Found | Requests to resources that don't exist or are malformed. |
| 405 | Method Not Allowed | Invalid request using an unsupported HTTP method. For example, using POST for a read-only resource or using PUT in place of PATCH. |
| 423 | Locked | TBD |
| 429 | Too Many Requests | The client has sent too many requests in a given amount of time (check the Rate Limiting section). |
| 500 | Internal Server Error | Server error. Please, report us and try to provide as much information as possible, such as the endpoint, HTTP request headers and request body if applicable. |