Skip to main content

Invalid Input

Invalid Input

type
string
https://docs.username.dev/errors/invalid-input
status
integer
400
When it occurs
The input query parameter is empty, missing, or contains only whitespace after normalization.
How to fix
Ensure the input query parameter contains a valid username string with at least 1 character after normalization. Remember that whitespace is removed during normalization, so empty strings or strings containing only whitespace will trigger this error.
{
  "type": "https://docs.username.dev/errors/invalid-input",
  "title": "Invalid Input",
  "status": 400,
  "detail": "Username cannot be empty",
  "instance": "/check"
}
Example scenario: Making a request without the input parameter or with an empty value like ?input= or ?input= (only whitespace).