How to handle 4xx and 5xx errors in Javascript fetch()
Many modern javascript applications make use of the in-built fetch() API. This API takes care of most of the HTTP stuff and hence reduces the overhead of an external library like Axios or jQuery in many cases. fetch makes use of Promise instead of ca...
Mar 27, 20216 min read569
