mirror of
https://github.com/actix/actix-website
synced 2025-08-21 13:25:36 +02:00
Merge pull request #181 from vo9312/update-return-status-code
Update error_response of ResponseError
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user