From f0d4c508fa148d0ffad9ba8b39430b58f57099bd Mon Sep 17 00:00:00 2001 From: Scott Lepper Date: Thu, 26 Oct 2023 15:34:28 -0400 Subject: [PATCH] bad request = downstream error (#790) --- backend/error_source.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/error_source.go b/backend/error_source.go index b75fd4bf6..ae92e9c63 100644 --- a/backend/error_source.go +++ b/backend/error_source.go @@ -13,8 +13,7 @@ const ( // ErrorSourceFromStatus returns an ErrorSource based on provided HTTP status code. func ErrorSourceFromHTTPStatus(statusCode int) ErrorSource { switch statusCode { - case http.StatusBadRequest, - http.StatusMethodNotAllowed, + case http.StatusMethodNotAllowed, http.StatusNotAcceptable, http.StatusPreconditionFailed, http.StatusRequestEntityTooLarge,