1
0
mirror of https://github.com/actix/actix-website synced 2025-06-29 08:14:58 +02: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

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;
}
```