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

Merge pull request #181 from vo9312/update-return-status-code

Update error_response of ResponseError
This commit is contained in:
Yuki Okushi 2020-07-03 07:42:42 +09:00 committed by GitHub
commit 49ddf3b0ab
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
pub trait ResponseError {
fn error_response(&self) -> HttpResponse;
fn error_response(&self) -> Response<Body>;
fn status_code(&self) -> StatusCode;
}
```