A 422 Unprocessable Content
response indicates that the request was well-formed, but couldn’t be processed because of invalid or conflicting data.
When it typically occurs :
- State constraints: the requested action isn’t allowed in the current or historical state of the resource. For example, you can’t update a version that’s active on a staging network, or one that has previously been active on any network. To proceed, create a new version of the CA set instead of trying to modify the active or locked version.
- Duplication: attempting to create a CA set version that has exactly the same certificates as an existing version.
- Resource limits exceeded: you’ve reached one of the limits enforced by the API:
- Maximum 200 CA sets per account.
- Maximum 100 versions per CA set.
- Maximum 300 certificates per CA set version.
In this example, the request failed because the CA set already contains a version with the same certificates.
{
"type": "/mtls-edge-truststore/error-types/duplicate-ca-set-version",
"instance": "/mtls-edge-truststore/error-types/duplicate-ca-set-version/4e0069deb5f40f63",
"title": "A version with same certificates exists in the CA set.",
"status": 422,
"detail": "A version with same certificates exists in the CA set.",
"contextInfo": {
"caSetName": "test",
"caSetId": "1",
"versionLink": "/mtls-edge-truststore/v2/ca-sets/1/versions/1"
}
}