From 2606bb2f932d076edde7c8ee27e638ba789351a4 Mon Sep 17 00:00:00 2001 From: Niklas Cathor Date: Mon, 25 Dec 2023 15:11:15 +0100 Subject: [PATCH] errors.md: fix type in ResponseError trait (#354) --- docs/errors.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/errors.md b/docs/errors.md index be0d6ea..fcf44f1 100644 --- a/docs/errors.md +++ b/docs/errors.md @@ -12,7 +12,7 @@ If a handler returns an `Error` (referring to the [general Rust trait `std::erro ```rust pub trait ResponseError { - fn error_response(&self) -> Response; + fn error_response(&self) -> HttpResponse; fn status_code(&self) -> StatusCode; } ```