---
title: "Discussion on \"How to suppress Axios throwing an error when it encounters a 4xx error code\" | Hashnode"
description: "Discussion on \"How to suppress Axios throwing an error when it encounters a 4xx error code\". One fine day, I was told to write a script that would make multiple API calls, to add dummy data to our db. \nI am a bit new to JS, I used to work with a Python stack at my previous org. \nBut I am a polyglot, so I don't really care what language I cod..."
url: "https://hashnode.com/posts/how-to-suppress-axios-throwing-an-error-when-it-encounters-a-4xx-error-code/63354ff0279166f3fb349361"
---

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

Discussion

# [How to suppress Axios throwing an error when it encounters a 4xx error code](https://tech.peculiarvivek.com/how-to-suppress-axios-throwing-an-error-when-it-encounters-a-4xx-error-code?utm_source=hashnode&utm_medium=feed)

One fine day, I was told to write a script that would make multiple API calls, to add dummy data to our db. I am a bit new to JS, I used to work with a Python stack at my previous org. But I am a polyglot, so I don't really care what language I cod...

Sep 29, 2022 · 1 min read · tech.peculiarvivek.com  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#axios](https://hashnode.com/tag/axios)
-   [#script](https://hashnode.com/tag/script)

## Written by

[Vivek Khatri](https://hashnode.com/@peculiarvivek)

@peculiarvivek · India

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

Refactoring code, one repo at a time.

I am still deciding what should I write here.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
