← Back to collection

422 Unprocessable Content: Nitpecker

422Unprocessable Content NitpeckerValidation PeckRead it. But age -5? Seriously?

What it means

The request was read, but the data fails validation.

Where you meet it

A string instead of a number, a negative age, “email: banana”.

What to test

  • Enter -5 in the age field (or an invalid email: "banana", "anna@", "@mail.com", "anna@@mail.com", "anna k@mail.com") and submit → an error message right under that field, and the form isn't sent.
  • Fill several fields with invalid values and the rest with valid ones, then submit → all errors are shown at once, and the valid values stay filled in.
  • Try boundary values one by one: an empty required field, max length + 1 character, a birth date in the future, 29 February in a non-leap year → each is rejected with a clear reason.