UnauthorizedResponseError - Python SDK

UnauthorizedResponseError error handling

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

Unauthorized - Authentication required or invalid credentials

Fields

FieldTypeRequiredDescriptionExample
errorcomponents.UnauthorizedResponseErrorData✔️Error data for UnauthorizedResponse{"code": 401,"message": "Missing Authentication header"}
openrouter_metadataDict[str, Nullable[Any]]N/A
user_idOptionalNullable[str]N/A