We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d0291a commit 97f3d20Copy full SHA for 97f3d20
website/docs/guide/error-handling.md
@@ -66,6 +66,10 @@ https://github.com/AndiDittrich/HttpErrorPages for pre-built error pages.
66
67
```go
68
func customHTTPErrorHandler(err error, c echo.Context) {
69
+ if c.Response().Committed {
70
+ return
71
+ }
72
+
73
code := http.StatusInternalServerError
74
if he, ok := err.(*echo.HTTPError); ok {
75
code = he.Code
0 commit comments