API reference for error.
The metadata an OpenAI error carries under "openai" (Effect's OpenAiError): the error code, type and request id, with the x-ratelimit-* headers for a rate limit.
"openai"
OpenAiError
x-ratelimit-*
On This Page