diff --git a/content/docs/errors.md b/content/docs/errors.md index 72b5a25..34e9435 100644 --- a/content/docs/errors.md +++ b/content/docs/errors.md @@ -16,7 +16,7 @@ If a handler returns an `Error` (referring to the [general Rust trait ```rust pub trait ResponseError { - fn error_response(&self) -> HttpResponse; + fn error_response(&self) -> Response; fn status_code(&self) -> StatusCode; } ```