Interface ErrorResponse

Standard error response structure

All API errors follow this structure for consistent error handling.

const error: ErrorResponse = {
message: 'Invalid API key provided',
code: 'INVALID_API_KEY',
status: 401
};
interface ErrorResponse {
    message: string;
    code: string;
    status: number;
}

Properties

Properties

message: string

Human-readable error message

code: string

Error code for programmatic handling

status: number

HTTP status code