A Bad Request is an HTTP status code that indicates the server received an invalid request. It's usually followed by a 400 error message.
There are several reasons why a server might return a 400 status code, including:
- Invalid data
- Missing required parameters
- Cross-domain policy violations
A Bad Request might be encountered in various scenarios, such as:
- When you try to send a POST request with an empty form data
- When you attempt to access a protected API endpoint without authentication
- When you try to perform an operation that's not supported by the server
Example of a Bad Request
Bad Request Example
HTTP Request