File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
1
Changelog
2
2
=========
3
3
4
+ [0.5.1] - Unreleased
5
+ --------------------
6
+
7
+ Changed
8
+ ^^^^^^^
9
+ - Check response return codes after the error state.
10
+ This helps providing more useful error messages.
11
+
4
12
[0.5.0] - 2024-12-06
5
13
--------------------
6
14
Original file line number Diff line number Diff line change @@ -265,7 +265,6 @@ def check_response(
265
265
if raise_scim_errors is None :
266
266
raise_scim_errors = self .raise_scim_errors
267
267
268
- self ._check_status_codes (status_code , expected_status_codes )
269
268
self ._check_content_types (headers )
270
269
271
270
# In addition to returning an HTTP response code, implementers MUST return
@@ -283,6 +282,7 @@ def check_response(
283
282
check_response_payload = self .check_response_payload
284
283
285
284
if not check_response_payload :
285
+ self ._check_status_codes (status_code , expected_status_codes )
286
286
return response_payload
287
287
288
288
if (
@@ -294,6 +294,8 @@ def check_response(
294
294
raise SCIMResponseErrorObject (obj = error .detail , source = error )
295
295
return error
296
296
297
+ self ._check_status_codes (status_code , expected_status_codes )
298
+
297
299
if not expected_types :
298
300
return response_payload
299
301
You can’t perform that action at this time.
0 commit comments