IBM Support

API Connect Validate policy returns status code 422 in case of a validate error

Question & Answer


Question

In API Connect version 2018 and prior versions, when the validate policy throws a ValidateError, the API returned status code 400. In API Connect version 10, the behavior changed and a status code 422 is returned. Why did the behavior change, and is it possible to return status code 400 instead?

[{"Type":"MASTER","Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSMNED","label":"IBM API Connect"},"ARM Category":[{"code":"a8m50000000CeEfAAK","label":"API Connect-\u003EDeveloper (DV)-\u003EPolicy"}],"ARM Case Number":"TS013905435","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"10.0.0;10.0.1;10.0.5;and future releases"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
05 September 2023

UID

ibm17030663