1
0
mirror of https://github.com/actix/actix-website synced 2024-11-30 11:12:57 +01:00

errors.md: fix type in ResponseError trait (#354)

This commit is contained in:
Niklas Cathor 2023-12-25 15:11:15 +01:00 committed by GitHub
parent 9827067735
commit 2606bb2f93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ If a handler returns an `Error` (referring to the [general Rust trait `std::erro
```rust ```rust
pub trait ResponseError { pub trait ResponseError {
fn error_response(&self) -> Response<Body>; fn error_response(&self) -> HttpResponse<BoxBody>;
fn status_code(&self) -> StatusCode; fn status_code(&self) -> StatusCode;
} }
``` ```