2 ms·
> Send an invalid body, say an unavailable product ID, or an invalid quantity. What error will you return? In this case the client has sent an invalid request
by mryan 11y ago
> Send an invalid body, say an unavailable product ID, or an invalid quantity. What error will you return?
In this case the client has sent an invalid request so the response should be 400 Bad Request or 422 Invalid Data, with details of the error in the response body.