Overview
The Cevoid API uses standard HTTP status codes to indicate the success or failure of your requests. Understanding these codes will help you build robust applications that can properly handle different scenarios.HTTP Status Codes
Success
200- Successful response: The request was processed successfully
Client Errors
400- Bad request: There was an error in your request (client-side error)401- Unauthorized: Invalid or missing authentication credentials403- Forbidden: The request is not allowed (insufficient permissions)404- Not found: The requested resource does not exist
Server Errors
402- Request failed: Valid parameters were provided, but the request failed500- Internal server error: An error occurred on Cevoid’s servers
Error Types
The Cevoid API returns errors with specific types to help you understand what went wrong:invalid_request
Issues with your request (most common):
- Missing required parameters
- Invalid parameter values
- Malformed request body
- Authentication problems
api_error
Issues on Cevoid’s side (rare):
- Internal server problems
- Service temporarily unavailable
- Database connectivity issues
Error Response Format
When an error occurs, the API returns a structured error response:Response Fields
type: The error category (invalid_requestorapi_error)message: Human-readable description of the errordocumentation_url: Link to relevant documentation
Common Error Scenarios
Authentication Errors (401)
x-api-key header.