We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bb5970 commit a0a0a14Copy full SHA for a0a0a14
packages/client/src/classes/client.js
@@ -154,7 +154,11 @@ class Client {
154
data = this.createRequest(data);
155
156
const promise = new Promise((resolve, reject) => {
157
- axios(data)
+ axios(data, {
158
+ validateStatus: function (status) {
159
+ return status >= 200 && status < 300 || status === 204;
160
+ }
161
+ })
162
.then(response => {
163
return resolve([
164
new Response(response.status, response.data, response.headers),
0 commit comments