FastAPI returns 200 OK by default, but you control the status code (via the decorator or the response object) and headers when you need different behavior — important for proper REST semantics.
Setting a default status code on the route
fastapi status
():
item
():
...
