When an error occurs in processing a request received from the browser, the web server returns the 4xx HTTP status code. If the web server cannot handle the request from the client browser, it will send 400 Bad or Invalid Request HTTP response. This is usually due to the request's invalid syntax.