{"record":{"id":"8d93d37bec0d4dac","repo":"openai/codex","slug":"quota-exceeded-check-your-plan-and-billing-detail","errorCode":null,"errorMessage":"Quota exceeded. Check your plan and billing details.","messagePattern":"Quota exceeded\\. Check your plan and billing details\\.","errorType":"exception","errorClass":"CodexErr","httpStatus":null,"severity":"error","filePath":"codex-rs/protocol/src/error.rs","lineNumber":141,"sourceCode":"    /// Multiple registered tools share the same effective name.\n    #[error(\"duplicate tool: {0}\")]\n    ToolCollision(String),\n    /// Invalid image.\n    #[error(\"Image poisoning\")]\n    InvalidImageRequest(),\n    #[error(\"{0}\")]\n    UsageLimitReached(UsageLimitReachedError),\n    #[error(\"Selected model is at capacity. Please try a different model.\")]\n    ServerOverloaded,\n    #[error(\"{message}\")]\n    CyberPolicy { message: String },\n    #[error(\"{message}\")]\n    MisalignmentPolicyViolation { message: String },\n    #[error(\"{0}\")]\n    ResponseStreamFailed(ResponseStreamFailed),\n    #[error(\"{0}\")]\n    ConnectionFailed(ConnectionFailedError),\n    #[error(\"Quota exceeded. Check your plan and billing details.\")]\n    QuotaExceeded,\n    #[error(\n        \"To use Codex with your ChatGPT plan, upgrade to Plus: https://chatgpt.com/explore/plus.\"\n    )]\n    UsageNotIncluded,\n    #[error(\"We're currently experiencing high demand, which may cause temporary errors.\")]\n    InternalServerError,\n    /// Retry limit exceeded.\n    #[error(\"{0}\")]\n    RetryLimit(RetryLimitReachedError),\n    /// Agent loop died unexpectedly\n    #[error(\"internal error; agent loop died unexpectedly\")]\n    InternalAgentDied,\n    /// Sandbox error\n    #[error(\"sandbox error: {0}\")]\n    Sandbox(#[from] SandboxErr),\n    #[error(\"codex-linux-sandbox was required but not provided\")]\n    LandlockSandboxExecutableNotProvided,","sourceCodeStart":123,"sourceCodeEnd":159,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/protocol/src/error.rs#L123-L159","documentation":"Typed category for the API's quota-exceeded response: the account's API quota (separate from plan usage limits) is exhausted, so requests are rejected until quota resets or is increased. Detected at the HTTP layer from the provider's 429/quota error and reclassified with this user-facing message.","triggerScenarios":"Thrown at codex-rs/protocol/src/error.rs:141 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check your plan and billing details in the provider dashboard","Wait for the quota window to reset before retrying","Upgrade quota/billing or reduce request volume"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}