mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-27 10:39:03 +02:00
refactor ResponseError trait
This commit is contained in:
@ -35,7 +35,7 @@ pub enum UriSegmentError {
|
||||
|
||||
/// Return `BadRequest` for `UriSegmentError`
|
||||
impl ResponseError for UriSegmentError {
|
||||
fn error_response(&self) -> HttpResponse {
|
||||
HttpResponse::new(StatusCode::BAD_REQUEST)
|
||||
fn status_code(&self) -> StatusCode {
|
||||
StatusCode::BAD_REQUEST
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user