diff --git a/http/handler.go b/http/handler.go index ae02a44..ce8e38d 100644 --- a/http/handler.go +++ b/http/handler.go @@ -288,6 +288,7 @@ func (this *Handler) serveError ( this.serveError(res, req, http.StatusInternalServerError, err, true) return } + res.WriteHeader(status) err = document.Execute(res, step.ExecutionData { Data: Error { Status: status,