diff --git a/protocol_test.py b/protocol_test.py index 9684872..93707d6 100644 --- a/protocol_test.py +++ b/protocol_test.py @@ -276,7 +276,6 @@ def test_version_negotiation(self): When the request includes a 'UCP-Agent' header with an incompatible version, then the request fails with 400 Bad Request. """ - # Discover shopping service endpoint discovery_resp = self.client.get("/.well-known/ucp") self.assert_response_status(discovery_resp, 200) profile_dict = discovery_resp.json() @@ -331,7 +330,7 @@ def test_version_negotiation(self): ), headers=headers, ) - self.assert_response_status(response, 400) + self.assert_response_status(response, 422) if __name__ == "__main__":