Error Handling

The SecureBatch API uses standard HTTP response codes to indicate the success or failure of an API request.


Status Codes

CodeStatusDescription
200OKThe request was successful.
400Bad RequestMissing required parameters or invalid file formats.
401UnauthorizedInvalid or missing API Key.
429Too Many RequestsYou have exceeded the Free Tier limits.
500Internal ErrorThe 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"
  }
}