diff --git a/rest/httpx/responses.go b/rest/httpx/responses.go index 644e3583..055f521b 100644 --- a/rest/httpx/responses.go +++ b/rest/httpx/responses.go @@ -24,7 +24,7 @@ func Error(w http.ResponseWriter, err error) { return } - code, body := errorHandler(err) + code, body := handler(err) if body == nil { w.WriteHeader(code) return