---
title: "Discussion on \"How to handle 4xx and 5xx errors in Javascript fetch()\" | Hashnode"
description: "Discussion on \"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.\nfetch makes use of Promise instead of ca..."
url: "https://hashnode.com/posts/how-to-handle-4xx-and-5xx-errors-in-javascript-fetch/605f1dc15aa4944ee40f87b4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to handle 4xx and 5xx errors in Javascript fetch()](https://techblog.tabrezahmed.com/how-to-handle-4xx-and-5xx-errors-in-javascript-fetch?utm_source=hashnode&utm_medium=feed)

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, 2021 · 6 min read · techblog.tabrezahmed.com  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#angular](https://hashnode.com/tag/angular)
-   [#fetch](https://hashnode.com/tag/fetch)
-   [#http](https://hashnode.com/tag/http)

## Written by

[Tabrez Ahmed](https://hashnode.com/@ahmedtabrez)

@ahmedtabrez · Bengaluru, India

  
[View profile](https://hashnode.com/@ahmedtabrez)

UI Developer, thinker, writer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
