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.
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.