BerriAI/litellm · error · HTTPException
ResourceType not found: {resource_type_id}
Error message
ResourceType not found: {resource_type_id} What it means
GET /scim/v2/ResourceTypes/{id}: the requested resource_type_id does not match any ResourceType the server advertises (User, Group, etc.). Since the set is static per RFC 7644, a miss means the client used an unknown id; raised as 404.
Source
Thrown at litellm/proxy/management_endpoints/scim/scim_v2.py:1225
@scim_router.get(
"/ResourceTypes/{resource_type_id}",
status_code=200,
dependencies=[Depends(user_api_key_auth), Depends(set_scim_content_type)],
)
async def get_resource_type(
request: Request,
resource_type_id: str = Path(..., title="ResourceType ID"),
):
"""
Get a single ResourceType by ID per RFC 7644.
"""
verbose_proxy_logger.debug("SCIM ResourceType request for id=%s", resource_type_id)
base_url: Final = str(request.base_url).rstrip("/") + "/scim/v2"
resource_types: Final = _get_resource_types(base_url)
for rt in resource_types:
if rt.id == resource_type_id:
return rt.model_dump()
raise HTTPException(
status_code=404,
detail={"error": f"ResourceType not found: {resource_type_id}"},
)
@scim_router.get(
"/Schemas",
status_code=200,
dependencies=[Depends(user_api_key_auth), Depends(set_scim_content_type)],
)
async def get_schemas(request: Request):
"""
SCIM Schemas endpoint per RFC 7643 Section 7.
Returns a ListResponse of all schemas supported by this service provider.
"""
verbose_proxy_logger.debug(
"SCIM Schemas request: method=%s url=%s",View on GitHub (pinned to 77b7c6c40c)
Solutions
- Use a valid ResourceType id; list them via GET /ResourceTypes.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at litellm/proxy/management_endpoints/scim/scim_v2.py:1225 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of BerriAI/litellm@77b7c6c40c (2026-08-18).
Data as JSON: /api/errors/f40c41c0e4becd44.
Report an issue: GitHub.