Commit f255c95
committed
Refactor HTTP response code handling
Removed unnecessary checks for response codes 100 and 200.
Updated handling for response code 401 to throw
`InvalidSessionToken` instead of `ObjectNotFound`.
Retained structure for response code 400 with added
deserialization of `ParseErrorPayload`.1 parent 1023430 commit f255c95
1 file changed
+2
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 80 | + | |
93 | 81 | | |
94 | 82 | | |
95 | 83 | | |
| |||
111 | 99 | | |
112 | 100 | | |
113 | 101 | | |
114 | | - | |
| 102 | + | |
115 | 103 | | |
116 | 104 | | |
117 | 105 | | |
| |||
0 commit comments