Skip to content

Commit 49ddf3b

Browse files
authored
Merge pull request #181 from vo9312/update-return-status-code
Update error_response of ResponseError
2 parents 10162d2 + 7f13b74 commit 49ddf3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/errors.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ If a handler returns an `Error` (referring to the [general Rust trait
1616

1717
```rust
1818
pub trait ResponseError {
19-
fn error_response(&self) -> HttpResponse;
19+
fn error_response(&self) -> Response<Body>;
2020
fn status_code(&self) -> StatusCode;
2121
}
2222
```

0 commit comments

Comments
 (0)