server responds with HTTP error code 400 if an error occurs