API Errors
Attachment Processing Errors
In the event of one or more task attachments having invalid data, the task callback will be invoked with an error response detailing the problems, and the task’s**status** will be set to **error**. Additional detail about the error and failed attachments will be stored in the task response.
Scale’s API uses the following HTTP codes:
| Error Code | Meaning |
|---|---|
| 200 | OK — Everything worked as expected. |
| 400 | Bad Request — The request was unacceptable, often due to missing a required parameter. |
| 401 | Unauthorized — No valid API key provided. |
| 402 | Not enabled — Please contact sales@scaleapi.com before creating this type of task. |
| 404 | Not Found — The requested resource doesn’t exist. |
| 409 | Conflict — The provided idempotency key or **unique_id** is already in use for a different request. |
| 429 | Too Many Requests — Too many requests hit the API too quickly. |
| 500 | Internal Server Error — We had a problem with our server. Try again later. |
Example Error Formats
These examples help you understand the structure and content of error messages returned by the API in different situations.- “Please include an attachment or attachments parameter”:
- “One or more attachments could not be downloaded”:
- “One or more attachments could not be downloaded (specific attachment errors)”: