From 2e5d56a9b125142817378883b098470d05ab0597 Mon Sep 17 00:00:00 2001 From: Yotam Ofek Date: Thu, 31 Mar 2022 16:43:54 +0300 Subject: [PATCH] Update outdated `Query` extractor docs. (#891) --- axum/src/extract/query.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/axum/src/extract/query.rs b/axum/src/extract/query.rs index a3e7ccf0..bf675f66 100644 --- a/axum/src/extract/query.rs +++ b/axum/src/extract/query.rs @@ -37,8 +37,8 @@ use std::ops::Deref; /// # }; /// ``` /// -/// If the query string cannot be parsed it will reject the request with a `400 -/// Bad Request` response. +/// If the query string cannot be parsed it will reject the request with a `422 +/// Unprocessable Entity` response. /// /// For handling values being empty vs missing see the (query-params-with-empty-strings)[example] /// example.