I'm making a request to download a file, when downloading works as intended, meaning it downloads the file no problems here. But when the download fails, due to any server error (404, 400, etc.), and I catch the error, the status code is always the same, 16, and I don't seem to be able to get the actual status code from the response, making me unable to properly handle any http errors coming my way.
I'm using "rn-fetch-blob": "^0.12.0".
Here's a snippet of my code, is there something wrong, or is it a bug?
I'm making a request to download a file, when downloading works as intended, meaning it downloads the file no problems here. But when the download fails, due to any server error (404, 400, etc.), and I catch the error, the status code is always the same, 16, and I don't seem to be able to get the actual status code from the response, making me unable to properly handle any http errors coming my way. I'm using "rn-fetch-blob": "^0.12.0".
Here's a snippet of my code, is there something wrong, or is it a bug?