{"record":{"id":"acb30c63dcfc247a","repo":"BerriAI/litellm","slug":"pass-through-endpoint-endpoint-not-found-this-c","errorCode":null,"errorMessage":"Pass-through endpoint {endpoint} not found. This could have been deleted or not yet added to the proxy.","messagePattern":"Pass-through endpoint (.+?) not found\\. This could have been deleted or not yet added to the proxy\\.","errorType":"http","errorClass":"HTTPException","httpStatus":404,"severity":"error","filePath":"litellm/proxy/pass_through_endpoints/pass_through_endpoints.py","lineNumber":1723,"sourceCode":"            from litellm.proxy.auth.auth_utils import (  # noqa: PLC0415\n                get_request_route,\n            )\n            from litellm.proxy.pass_through_endpoints.pass_through_endpoints import (\n                InitPassThroughEndpointHelpers,\n            )\n\n            path: Final = get_request_route(request)\n\n            # Parse request data based on content type\n            (\n                query_params_data,\n                custom_body_data,\n                file_data,\n                stream,\n            ) = await _parse_request_data_by_content_type(request)\n\n            if not InitPassThroughEndpointHelpers.is_registered_pass_through_route(route=path):\n                raise HTTPException(\n                    status_code=404,\n                    detail=f\"Pass-through endpoint {endpoint} not found. This could have been deleted or not yet added to the proxy.\",\n                )\n\n            passthrough_params: Final = InitPassThroughEndpointHelpers.get_registered_pass_through_route(\n                route=path, method=request.method\n            )\n            if (\n                passthrough_params is None\n                and InitPassThroughEndpointHelpers.get_registered_pass_through_route(route=path) is not None\n            ):\n                raise HTTPException(\n                    status_code=status.HTTP_405_METHOD_NOT_ALLOWED,\n                    detail=f\"Method {request.method} is not allowed for pass-through endpoint {path}.\",\n                )\n            target_params: Final = {\n                \"target\": target,\n                \"custom_headers\": custom_headers,","sourceCodeStart":1705,"sourceCodeEnd":1741,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py#L1705-L1741","documentation":"404 guard on the catch-all pass-through route: the requested path is not in the registered pass-through routes, meaning the endpoint was never added in config or has been deleted, so the proxy refuses to forward it.","triggerScenarios":"Thrown at litellm/proxy/pass_through_endpoints/pass_through_endpoints.py:1723 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Register the pass-through endpoint in config.yaml or via the /config/pass_through_endpoint API.","List existing pass-through endpoints to verify the path; the endpoint may have been deleted."],"exampleFix":null,"handlingStrategy":"type-guard","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-14T00:17:10.932Z"}