nuxt-community / axios-module

Secure and easy axios integration for Nuxt 2
https://axios.nuxtjs.org
MIT License
1.2k stars 245 forks source link

Status code is not returned for 413 responses #600

Open sadeghi-aa opened 1 year ago

sadeghi-aa commented 1 year ago

When an API is called and the server returns a 413 status code (Content Too Large), axios doesn't return the code in the error object. Also, it can't be deduced from the message since it just says: "Network Error".

I don't know about other status codes, but since 400 status codes are fine, I guess we could handle other codes too, and it'd be very good if we could.

yannick-mir commented 11 months ago

Any fix for this?