Skip to content

Keep the Error object an exception is built from - #168

Merged
azmeuk merged 1 commit into
mainfrom
preserve-server-error-object
Sep 20, 2026
Merged

azmeuk merged 1 commit into
mainfrom
preserve-server-error-object

Conversation

@azmeuk

@azmeuk azmeuk commented Sep 20, 2026

Copy link
Copy Markdown
Member

SCIMException.from_error() rebuilt the status and the scimType from the exception class, so everything it has no class for was lost: a 429 status came back as 400, and a vendor specific scimType came back empty. to_error() now gives back the object it was built from.

A client turning a server error into an exception and back into an HTTP response no longer changes the status the server sent.

SCIMException.from_error() rebuilt the status and the scimType from the
exception class, so everything it has no class for was lost: a 429
status came back as 400, and a vendor specific scimType came back empty.
to_error() now gives back the object it was built from.

A client turning a server error into an exception and back into an HTTP
response no longer changes the status the server sent.
@azmeuk
azmeuk merged commit 69e5f26 into main Sep 20, 2026
25 checks passed
@azmeuk
azmeuk deleted the preserve-server-error-object branch September 20, 2026 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant