# Status Codes and Headers

A response's three-digit status code tells the app how its request went before it reads a word of the body, its first digit names the family (2xx it worked, 3xx look elsewhere, 4xx the request has a problem, 5xx the server broke), and headers such as Content-Type tell the app how to read the body.

![Cheat sheet: Status Codes and Headers](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/51a15ce6b0e745879aa2f45f3f46c114.webp)

- Category: FastAPI
- Level: Apprentice
- Tags: &lt;header>, 200 OK, 400 Bad Request, 500 Internal Server Error, Content-Type, python, rest-api, Status Code, web-development
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/fastapi-http-status-codes-and-headers-cheat-sheet
