I can upload files to my backend via a POST request and it returns an Http 400 Status code when the file is too big. It works perfectly when using Postman.
When I do this call in a browser (chrome), I get this error:
zone.js:2933 POST http://localhost:8080/backend/rest/upload/ net::ERR_CONNECTION_ABORTED
As a results, my HttpErrorResponse has a status code of 0:
HttpErrorResponse {headers: HttpHeaders, status: 0, statusText: "Unknown Error", url: null, ok: false, …}
This answer explains the problem, but how to I deal with this problem in Angular ? I was counting on the returned error message contained in my Http 400 response...