Closed liborjelinek closed 1 year ago
Hey @mattwarrick! I believe the test client is working as intended -- it is the framework itself that does not render any content; and that is by design.
Falcon conforms to the HTTP semantics, see, e.g. RFC 9110, 9.3.2. HEAD:
The HEAD method is identical to GET except that the server MUST NOT send content in the response.
(emphasis mine)
Ooo, you are correct. I didn't realize HEAD responses have no bodies. Thank you for making Falcon so great.
I have a custom error handler for
HTTPRouteNotFound
to provide friendlier error message "route not found" then generic "something not found".For testing, I create simple resource:
and add
route_not_found_handler()
Testing it with GET to non-existing route works well:
However, if method is HEAD, response code is 404 but body is empty