1
0
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:
vo9312 2020-06-26 11:36:31 -05:00 committed by GitHub
parent a0971bfa5c
commit 7f13b74db4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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