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 4c4a503cdc
commit 885a6ad7bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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 {