I was testing an endpoint in my puzzle and raising a 404 on purpose. I was expecting a 404 in the response, but got a 200.
The custom_http_exception_handler is catching my HTTPException and returning a templated 404 page, but the TemplateResponse has status 200.
|
return templates.TemplateResponse(request=request, name="404_general.html") |
Is that on purpose?
Possibly related to d669329 in #64?