---
title: "Discussion on \"How to Extract an Error Object from a Blob API Response in JavaScript\" | Hashnode"
description: "Discussion on \"How to Extract an Error Object from a Blob API Response in JavaScript\". I encountered an issue when I made a GET request in my React project which was supposed to return a file I could download. For the file to download properly, I had to make the response type a blob. \nBut if an error occurred when the server returns a ..."
url: "https://hashnode.com/posts/how-to-extract-an-error-object-from-a-blob/66bb45031eb3452dfca5384e"
---

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

Discussion

# [How to Extract an Error Object from a Blob API Response in JavaScript](https://freecodecamp.org/news/how-to-extract-an-error-object-from-a-blob?utm_source=hashnode&utm_medium=feed)

I encountered an issue when I made a GET request in my React project which was supposed to return a file I could download. For the file to download properly, I had to make the response type a blob. But if an error occurred when the server returns a ...

Mar 29, 2024 · 3 min read · freecodecamp.org  
Read the article

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

## Written by

[Olabisi Olaoye](https://hashnode.com/@Olabisi09)

@Olabisi09 · Lagos, Nigeria

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

Frontend Developer

Frontend developer passionate about converting ideas to user-oriented web solutions.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
