Checkout the override section -> APIs override -> sending custom response page to see how to send 40...
r
Checkout the override section -> APIs override -> sending custom response page to see how to send 400 response.