ForbiddenResponseError - Python SDK

ForbiddenResponseError error handling

The Python SDK and docs are currently in beta. Report issues on GitHub.

Forbidden - Authentication successful but insufficient permissions

Fields

FieldTypeRequiredDescriptionExample
errorcomponents.ForbiddenResponseErrorData✔️Error data for ForbiddenResponse{"code": 403,"message": "Only management keys can perform this operation"}
openrouter_metadataDict[str, Nullable[Any]]N/A
user_idOptionalNullable[str]N/A