angular $http usage (.success, .error what happens?)
$http({
method: 'POST',
data: {test: 'test'}
url: '/someUrl'
}).then(function(response) {
// this callback will be called asynchronously
// when the response is available
}, function(response) {
// called asynchronously if an error occurs
// or server returns response with an error status.
});
400 Bad Request The server cannot or will not handle the request due to obvious client error (e.g., malformed request syntax, too large size, invalid request message, or deceptively routed request).
The above is taken from Wikipedia
4** is about the front-end error. You should check whether the parameters and types sent match the definition of the back-end interface, and carefully look at the part that sends the request
angular $http usage (.success, .error what happens?)
Is it because the backend did not respond to the AJAX request result and the frontend did not receive the status value
It is estimated to be similar to the fetch API design. 400 is a normal code return. It can be executed to resolve
The above is taken from Wikipedia
4** is about the front-end error. You should check whether the parameters and types sent match the definition of the back-end interface, and carefully look at the part that sends the request