mirror of
https://github.com/actix/actix-website
synced 2025-01-22 16:15:56 +01:00
Update errors.md
This commit is contained in:
parent
a0971bfa5c
commit
7f13b74db4
@ -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<Body>;
|
||||
fn status_code(&self) -> StatusCode;
|
||||
}
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user