Managed HSM may return an "empty" error object in otherwise successful responses, e.g.:
{
"status": "complete",
// ...
"error": {
"code": null,
"innererror": null,
"message": null
}
}
This may yield an error depending on how the response is processed. To mitigate this possibility, check not only that the error object is null but that the error.code is null before yielding an error.
Managed HSM may return an "empty" error object in otherwise successful responses, e.g.:
{ "status": "complete", // ... "error": { "code": null, "innererror": null, "message": null } }This may yield an error depending on how the response is processed. To mitigate this possibility, check not only that the
errorobject is null but that theerror.codeis null before yielding an error.