{"record":{"id":"a8427ef8ae722666","repo":"openai/codex","slug":"cyber-policy-message","errorCode":null,"errorMessage":"cyber policy: {message}","messagePattern":"cyber policy: (.+?)","errorType":"exception","errorClass":"ApiError","httpStatus":null,"severity":"error","filePath":"codex-rs/codex-api/src/error.rs","lineNumber":30,"sourceCode":"    Api { status: StatusCode, message: String },\n    #[error(\"stream error: {0}\")]\n    Stream(String),\n    #[error(\"context window exceeded\")]\n    ContextWindowExceeded,\n    #[error(\"quota exceeded\")]\n    QuotaExceeded,\n    #[error(\"usage not included\")]\n    UsageNotIncluded,\n    #[error(\"retryable error: {message}\")]\n    Retryable {\n        message: String,\n        delay: Option<Duration>,\n    },\n    #[error(\"rate limit: {0}\")]\n    RateLimit(String),\n    #[error(\"invalid request: {message}\")]\n    InvalidRequest { message: String },\n    #[error(\"cyber policy: {message}\")]\n    CyberPolicy { message: String },\n    #[error(\"misalignment policy violation: {message}\")]\n    MisalignmentPolicyViolation { message: String },\n    #[error(\"server overloaded\")]\n    ServerOverloaded,\n}\n\nimpl From<RateLimitError> for ApiError {\n    fn from(err: RateLimitError) -> Self {\n        Self::RateLimit(err.to_string())\n    }\n}\n","sourceCodeStart":12,"sourceCodeEnd":43,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/codex-api/src/error.rs#L12-L43","documentation":"The request was rejected by the API's cyber safety policy: the content was classified as potentially harmful cyber activity and the call is refused; the message carries the policy explanation. Used by app-server daemon remote-control platform checks.","triggerScenarios":"Thrown at codex-rs/codex-api/src/error.rs:30 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Adjust the request content per the policy message","Avoid the disallowed operation"],"exampleFix":null,"handlingStrategy":"validation","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"}