{"record":{"id":"1ce7b90fa31824f7","repo":"diegosouzapw/OmniRoute","slug":"provider-002","errorCode":"PROVIDER_002","errorMessage":"Provider timeout","messagePattern":"Provider timeout","errorType":"error_code","errorClass":null,"httpStatus":504,"severity":"error","filePath":"src/shared/constants/errorCodes.ts","lineNumber":115,"sourceCode":"    httpStatus: 400,\n    category: \"MODEL\",\n  },\n  MODEL_003: {\n    code: \"MODEL_003\",\n    message: \"Model temporarily unavailable\",\n    httpStatus: 503,\n    category: \"MODEL\",\n  },\n\n  // ── Provider ──\n  PROVIDER_001: {\n    code: \"PROVIDER_001\",\n    message: \"Provider error\",\n    httpStatus: 502,\n    category: \"PROVIDER\",\n  },\n  PROVIDER_002: {\n    code: \"PROVIDER_002\",\n    message: \"Provider timeout\",\n    httpStatus: 504,\n    category: \"PROVIDER\",\n  },\n  PROVIDER_003: {\n    code: \"PROVIDER_003\",\n    message: \"Provider not configured\",\n    httpStatus: 400,\n    category: \"PROVIDER\",\n  },\n\n  // ── Validation ──\n  VALID_001: {\n    code: \"VALID_001\",\n    message: \"Invalid request body\",\n    httpStatus: 400,\n    category: \"VALIDATION\",\n  },","sourceCodeStart":97,"sourceCodeEnd":133,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/shared/constants/errorCodes.ts#L97-L133","documentation":"PROVIDER_002 (504): the upstream provider did not complete the request within the configured timeout and the request was aborted. Unlike PROXY_002 this is the provider leg, after successful connection establishment.","triggerScenarios":"Thrown at src/shared/constants/errorCodes.ts:115 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Increase the provider timeout for slow models (long reasoning)","Retry the request with backoff","Switch to a faster provider/model in the combo"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}