HTTP status code

HTTP 422 Unprocessable Content

422 Unprocessable Content means the request is correctly formed, but the data isn't valid for processing.

Reviewed: 6 November 2026
Class
4xx · Client errors
Where the problem is
Problem with the request (client)
Who fixes it
You can often fix it yourself (URL, sign-in, cookies).

What it means

The server understands the format (e.g. valid JSON), but the content breaks the rules: a required field is missing, an email is invalid or a date is in the past. The code is common in REST APIs (Rails, Laravel, FastAPI) for validation errors.

Most common causes

  • A missing or empty required field.
  • A value in the wrong format (email, phone, date).
  • A value outside the allowed range.
  • A business rule that doesn't allow the request.

What you can do as a visitor

  1. Check what you entered in the form; the field with the error is usually highlighted.

Shows the HTTP status, redirect chain, HTTPS and basic SEO signals. Works for public addresses only.

What the site owner or developer should do

  1. Return a list of fields and error messages in the response.
  2. Use 400 for an unreadable request and 422 for invalid content.
  3. Validate on the client side too for a better user experience.

Impact on SEO and Google

422s occur in forms and APIs and don't affect page indexing.

Frequently asked questions

400 or 422?

400 for a malformed request, 422 for a well-formed request with invalid data.

Why does FastAPI return 422?

Because the data doesn't match the expected model (types, required fields).

Sources