Skip to content

Commit

Permalink
feat!(api): make IoErrors respond with BadRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
jbr committed May 30, 2024
1 parent ea8b215 commit 53800c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ impl From<&Error> for Status {
Status::UnsupportedMediaType
}
Error::FailureToNegotiateContent => Status::NotAcceptable,
Error::IoError { .. } => Status::BadRequest,
_ => Status::InternalServerError,
}
}
Expand Down

0 comments on commit 53800c0

Please sign in to comment.