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
readonlyerror:object
Defined in: src/api/middleware/error-handler.ts:48
code
readonlycode:string
Machine-readable error code.
field?
readonlyoptionalfield:string
Field that caused the error (validation errors only).
message
readonlymessage:string
Human-readable error message.
requestId
readonlyrequestId:string
Request ID for correlation.
retryAfter?
readonlyoptionalretryAfter:number
Seconds to wait before retrying (rate limit errors only).