The request payload is invalid

validation_failed HTTP 422

The request body was understood but is not valid. The errors member maps each field to what is wrong with it. This is about the body; a malformed query string is invalid_query_parameter.

How to react to this in code

Switch on the code member — validation_failed — which is stable. Do not parse the type URI: it points here, and where "here" is may change.