diff --git a/errors/http.go b/errors/http.go index d141170aa..1efc91063 100644 --- a/errors/http.go +++ b/errors/http.go @@ -9,9 +9,9 @@ func httpStatus(code Code) int { switch code { case APIRouteNotFound, FilesRouteNotFound, RouteNotFound, SPARouteNotFound: return http.StatusNotFound - case APIConnect: + case APIConnect, UpstreamResponseValidationFailed: return http.StatusBadGateway - case InvalidRequest: + case InvalidRequest, UpstreamRequestValidationFailed: return http.StatusBadRequest case AuthorizationRequired, BasicAuthFailed: return http.StatusUnauthorized