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; } ```