diff --git a/axum-extra/src/extract/query.rs b/axum-extra/src/extract/query.rs index 6e046b39..7ff81085 100644 --- a/axum-extra/src/extract/query.rs +++ b/axum-extra/src/extract/query.rs @@ -46,8 +46,8 @@ use std::{fmt, ops::Deref}; /// # }; /// ``` /// -/// If the query string cannot be parsed it will reject the request with a `422 -/// Unprocessable Entity` response. +/// If the query string cannot be parsed it will reject the request with a `400 +/// Bad Request` response. /// /// For handling values being empty vs missing see the [query-params-with-empty-strings][example] /// example. diff --git a/axum/src/extract/query.rs b/axum/src/extract/query.rs index 64a5c71e..10b523a4 100644 --- a/axum/src/extract/query.rs +++ b/axum/src/extract/query.rs @@ -38,8 +38,8 @@ use std::ops::Deref; /// # }; /// ``` /// -/// If the query string cannot be parsed it will reject the request with a `422 -/// Unprocessable Entity` response. +/// If the query string cannot be parsed it will reject the request with a `400 +/// Bad Request` response. /// /// For handling values being empty vs missing see the [query-params-with-empty-strings][example] /// example.