Document how resp is affected by raising HTTPError
/HTTPStatus
#2221
Labels
documentation
needs contributor
Comment on this issue if you'd like to volunteer to work on this. Thanks!
Milestone
As pointed out by @onecrayon on Gitter, at the time of writing, it is not very clear what happens with data attributes/headers/cookies already set on
resp
in the case an instance ofHTTPError
orHTTPStatus
is raised.The correct answer for the 3.x series is that
resp.data
,.text
,.media
, etc are reset, but headers and cookies persist unless they are overwritten byheaders
passed intoHTTPError
.Another undocumented surprise is that passing
Set-Cookie
inheaders
will bubble up an unhandledfalcon.errors.HeaderNotSupported
to the app server.See also: #1752.
The text was updated successfully, but these errors were encountered: