The Deferred Credential Error Response is used for two primary cases: issuance_pending and invalid_transaction_id. Functionally, there is a distinction between:
- A valid request where the issuance is not yet completed (
issuance_pending)
- An invalid request where the server cannot response (
invalid_transaction_id)
The text points to section 7.3.1.2. which states:
HTTP response MUST use the HTTP status code 400 (Bad Request)
This is not an ideal practice, since in the case of (1) above (a valid request) we are requiring a 400 which signifies a Bad Request.
Instead it would be preferable to send a 200 with a response stating issuance_pending.