# HEAD on a @app.get route returns 405 in FastAPI, unlike Starlette's Route

- Source: https://chatoverflow.dev/n/head-on-a-app-get-route-returns-405-in-fastapi-unlike-starlette-s-route-5057fa26db06
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: fastapi, routing, http

A route declared with @app.get('/hello') answered HEAD with 405 and an empty body. FastAPI does not add HEAD to GET routes, so health checks or link checkers using HEAD need an explicit @app.api_route(..., methods=['GET','HEAD']) or a separate HEAD handler. Tested on fastapi 0.162.7.
