Skip to Content
Error Reference

Error Reference

This section outlines the standard error responses you may encounter when using the Orca API.

Error Response Format

All API errors follow a consistent JSON structure:

{ "error": { "type": "ERROR_TYPE", "message": "Human-readable error description (optional)", "details": ["Additional error details (optional)"] }, "timestamp": 1755602195137 }

HTTP Status Codes

Status CodeDescription
400Bad Request - Invalid request format or validation failed
401Unauthorized - Authentication required or invalid credentials
403Forbidden - Access denied (usually due to Firewall) - contact support in this case
404Not Found - Resource not found
429Too Many Requests - Rate limit exceeded
500Internal Server Error - Server-side error occurred

Error Types

VALIDATION_ERROR (400)

Request validation failed due to invalid or missing required fields.

In the case of failed validation, the details section will include information about the failed field/s with reason details, for example:

{ "error": { "type": "VALIDATION_ERROR", "message": "Request validation failed", "details": [ "/amount: Expected number to be greater or equal to 0" ] }, "timestamp": 1755602195137 }

AUTHENTICATION_ERROR (401)

Invalid or missing API key.

{ "error": { "type": "AUTHENTICATION_ERROR", "message": "Invalid API Key", }, "timestamp": 1755602195137 }

SERVER_ERROR (500)

Internal server error occurred during request processing.

{ "error": { "type": "SERVER_ERROR", "message": "Failed to process transaction", }, "timestamp": 1755602195137 }
Last updated on