Use 422 Unprocessable Entity for Form deserialization errors, except GET and HEAD requests (#1683)

This commit is contained in:
David Pedersen
2023-02-17 09:59:02 +01:00
committed by GitHub
parent e6ff0281ae
commit cd86f7ec7a
4 changed files with 71 additions and 41 deletions
@@ -13,7 +13,7 @@ error[E0277]: the trait bound `bool: IntoResponse` is not satisfied
(Response<()>, T1, R)
(Response<()>, T1, T2, R)
(Response<()>, T1, T2, T3, R)
and 124 others
and $N others
note: required by a bound in `__axum_macros_check_handler_into_response::{closure#0}::check`
--> tests/debug_handler/fail/wrong_return_type.rs:4:23
|