Skip to main content

Interface: ErrorResponse

Defined in: src/api/middleware/error-handler.ts:47

Error response structure.

Remarks

Matches Stripe/GitHub API error response patterns for client consistency.

Properties

error

readonly error: object

Defined in: src/api/middleware/error-handler.ts:48

code

readonly code: string

Machine-readable error code.

field?

readonly optional field: string

Field that caused the error (validation errors only).

message

readonly message: string

Human-readable error message.

requestId

readonly requestId: string

Request ID for correlation.

retryAfter?

readonly optional retryAfter: number

Seconds to wait before retrying (rate limit errors only).