Error Handling
The SecureBatch API uses standard HTTP response codes to indicate the success or failure of an API request.
Status Codes
| Code | Status | Description |
|---|---|---|
| 200 | OK | The request was successful. |
| 400 | Bad Request | Missing required parameters or invalid file formats. |
| 401 | Unauthorized | Invalid or missing API Key. |
| 429 | Too Many Requests | You have exceeded the Free Tier limits. |
| 500 | Internal Error | The WebAssembly engine crashed or ran out of memory. |
Error Response Object
All error responses follow this standard JSON format:
Response Body
{
"error": {
"code": "invalid_file_format",
"message": "The file 'video.exe' is not a supported video format.",
"doc_url": "https://securebatch.com/docs/errors/invalid_file_format"
}
}