{"record":{"id":"02693f27162dd26a","repo":"BerriAI/litellm","slug":"notfounderror-exception-provider-message","errorCode":null,"errorMessage":"NotFoundError: {exception_provider} - {message}","messagePattern":"NotFoundError: (.+?) - (.+?)","errorType":"exception","errorClass":"NotFoundError","httpStatus":404,"severity":"error","filePath":"litellm/litellm_core_utils/exception_mapping_utils.py","lineNumber":417,"sourceCode":"    elif hasattr(original_exception, \"status_code\"):\n        if original_exception.status_code == 400:\n            raise BadRequestError(\n                message=f\"{exception_provider} - {message}\",\n                llm_provider=custom_llm_provider,\n                model=model,\n                response=getattr(original_exception, \"response\", None),\n                litellm_debug_info=extra_information,\n            )\n        elif original_exception.status_code == 401:\n            raise AuthenticationError(\n                message=f\"AuthenticationError: {exception_provider} - {message}\",\n                llm_provider=custom_llm_provider,\n                model=model,\n                response=getattr(original_exception, \"response\", None),\n                litellm_debug_info=extra_information,\n            )\n        elif original_exception.status_code == 404:\n            raise NotFoundError(\n                message=f\"NotFoundError: {exception_provider} - {message}\",\n                model=model,\n                llm_provider=custom_llm_provider,\n                response=getattr(original_exception, \"response\", None),\n                litellm_debug_info=extra_information,\n            )\n        elif original_exception.status_code == 408:\n            raise Timeout(\n                message=f\"Timeout Error: {exception_provider} - {message}\",\n                model=model,\n                llm_provider=custom_llm_provider,\n                litellm_debug_info=extra_information,\n            )\n        elif original_exception.status_code == 422:\n            raise BadRequestError(\n                message=f\"{exception_provider} - {message}\",\n                model=model,\n                llm_provider=custom_llm_provider,","sourceCodeStart":399,"sourceCodeEnd":435,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/litellm_core_utils/exception_mapping_utils.py#L399-L435","documentation":"Generic provider status-code mapping: an upstream exception with HTTP 404 is re-raised as LiteLLM's NotFoundError, preserving the provider name and original message so callers get a normalized 404-class error.","triggerScenarios":"Thrown at litellm/litellm_core_utils/exception_mapping_utils.py:417 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the model name and endpoint exist for this provider; the resource was not found.","Check for typos in model/deployment names and API base URLs."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}