Skip to content
Commit d83c5a65 authored by david-perez's avatar david-perez Committed by Russell Cohen
Browse files

Improve invalid HTTP status code responses failure mode handling (#2522)

If the model only uses the `@http` trait to define the response code,
Smithy already checks that this is a valid status code, so the
conversion cannot fail, and we can avoid rejecting with
`ResponseRejection::InvalidHttpStatusCode`.

This commit also removes this variant from RPC protocols, where HTTP
binding traits are not allowed, and so this failure mode can never
happen.
parent bd2577c3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment