Fix HTTPErrorHandler always returning 200 (#109)

This commit is contained in:
Eduardo Zepeda 2025-05-19 11:13:22 -06:00 committed by GitHub
parent 3cfcb43031
commit 9e15bceace

View file

@ -32,7 +32,7 @@ func (e *Error) Page(err error, ctx echo.Context) {
}
// Set the status code.
ctx.Response().Status = code
ctx.Response().WriteHeader(code)
// Render the error page.
if err = pages.Error(ctx, code); err != nil {