Skip to content

Glossary: ML in Production

HTTP status codes

Also written: 422, 422 error, status code

Numbers an API returns to say how a request went. In general 2xx means success, 4xx a mistake by the caller and 5xx a server fault; for example, FastAPI returns 422 when the JSON is valid but its content breaks the schema, with a `loc` field naming the offending field.

Where the book teaches it

Related terms

SchemaPydantic