Skip to main content
Gateway errors return a message and a code:
On /v1/messages, the two 402 errors use the Anthropic error shape and carry only the message. Errors from the model provider, such as rate limits, pass through with the provider’s status and message.