Errors#
The errors of the protocol are the exceptions of scim2-models, such as
NotFoundException. scim2-server adds the HTTP errors that
RFC 7644 §3.12 does not list.
- class scim2_server.errors.UnsupportedMediaTypeException(*, detail: str | None = None, scim_ctx: Context | None = None, **context: Any)[source]#
The request body is not JSON.
Corresponds to HTTP status 415, with no scimType. SCIM payloads are
application/scim+json(RFC 7644 §8.1), andapplication/jsonis accepted as well.
- class scim2_server.errors.MethodNotAllowedException(*, allowed: Iterable[str] = (), **kwargs: Any)[source]#
The endpoint does not support the method of the request.
Corresponds to HTTP status 405, with no scimType. The response lists the supported methods in its
Allowheader (RFC 9110 §15.5.6).- Parameters:
allowed – The methods the endpoint supports.