From 68bf8ed7fcdbb6ce2d7f5a10652753e9bcd1ca5a Mon Sep 17 00:00:00 2001 From: Rob Date: Mon, 27 Feb 2023 17:29:39 -0500 Subject: [PATCH] Update documentation for `FailedToDeserializeQueryString` response type (#1795) --- axum-extra/src/extract/query.rs | 4 ++-- axum/src/extract/query.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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.