NotionErrorResponse
Defined in: src/errors.ts:60
Notion API error response structure.
Properties
Section titled “Properties”additional_data?
Section titled “additional_data?”
optionaladditional_data?:object&Record<string,unknown>
Defined in: src/errors.ts:67
Extra machine-readable context for some error codes, for example restricted_resource.
Type Declaration
Section titled “Type Declaration”rate_limit_reason?
Section titled “rate_limit_reason?”
optionalrate_limit_reason?:RateLimitReason
Present on rate_limited responses. Identifies why the API rate-limited the request.
retry_after?
Section titled “retry_after?”
optionalretry_after?:string
Present on rate_limited responses. Duplicates Retry-After as whole seconds.
code:
NotionErrorCode
Defined in: src/errors.ts:63
message
Section titled “message”message:
string
Defined in: src/errors.ts:64
object
Section titled “object”object:
"error"
Defined in: src/errors.ts:61
status
Section titled “status”status:
number
Defined in: src/errors.ts:62