request handles 4xx returns as valid (as they carry meaning). The API transports validation errors that way (let's say you specify a username that is too long, or a background color that is not valid). The promise resolves, even though the actual API request failed.
request handles 4xx returns as valid (as they carry meaning). The API transports validation errors that way (let's say you specify a username that is too long, or a background color that is not valid). The promise resolves, even though the actual API request failed.