Skip to main content

OpenAIErrorEnvelope

OpenAI-shaped error body used by the Responses endpoints and their sub-resources (distinct from the platform-standard ErrorResponse envelope used elsewhere). Carried codes include response_not_found, artifact_not_found, file_not_found, unsupported_file_reference_mode, and response_too_large.

error objectrequired
messagestringrequired
typestringrequired
Example: invalid_request_error
codestringrequired
OpenAIErrorEnvelope
{
"error": {
"message": "string",
"type": "invalid_request_error",
"code": "string"
}
}