Skip to content

NotionErrorResponse

Defined in: src/errors.ts:60

Notion API error response structure.

optional additional_data?: object & Record<string, unknown>

Defined in: src/errors.ts:67

Extra machine-readable context for some error codes, for example restricted_resource.

optional rate_limit_reason?: RateLimitReason

Present on rate_limited responses. Identifies why the API rate-limited the request.

optional retry_after?: string

Present on rate_limited responses. Duplicates Retry-After as whole seconds.


code: NotionErrorCode

Defined in: src/errors.ts:63


message: string

Defined in: src/errors.ts:64


object: "error"

Defined in: src/errors.ts:61


status: number

Defined in: src/errors.ts:62