diff --git a/src/error.rs b/src/error.rs index 794abf9..0445d9d 100644 --- a/src/error.rs +++ b/src/error.rs @@ -30,6 +30,12 @@ impl ResponseError for Error { .content_type("text/html") .body(P500) } + + fn render_response(&self) -> HttpResponse { + HttpResponse::InternalServerError() + .content_type("text/html") + .body(P500) + } } impl std::error::Error for Error {}