You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error.data.status.error; // only available for a 4xx responses
75
+
} elseif (error.status===500) {
76
+
error.data.status.error; // only available for a 500 response
77
+
} else {
78
+
error.data.result;
79
+
// ...
80
+
}
81
+
}
82
+
}
83
+
```
84
+
52
85
## Support
53
86
54
87
The REST implementation relies on the native [fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API), which is available in Deno and Node.js (starting on v18.0.0 without experimental flag). The Deno implementation [supports HTTP/2](https://deno.com/blog/every-web-api-in-deno#fetch-request-response-and-headers) whereas Node.js is still lagging on the spec and provide only HTTP 1.1 support (this is due to the fact that under the hood Node.js still relies on [undici](https://github.com/nodejs/undici)).
0 commit comments