mirror of
https://github.com/actix/actix-website
synced 2024-11-28 02:22:57 +01:00
Merge pull request #181 from vo9312/update-return-status-code
Update error_response of ResponseError
This commit is contained in:
commit
49ddf3b0ab
@ -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;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user