diff --git a/src/errors.rs b/src/errors.rs index c0cd50e..1df60ce 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -213,4 +213,8 @@ impl ResponseError for ApiError { } HttpResponse::build(self.status_code()).json(self.to_json()) } + + fn render_response(&self) -> HttpResponse { + self.error_response() + } }