Pular para o conteúdo principal

REST PKI Return Codes

REST PKI returns the following HTTP status codes:

401 - Unauthorized

The provided access token is not valid.

422 - Unprocessable Entity

The REST PKI operations have a set of return codes shown bellow with the meaning of each one.

Return CodeMeaning
EntityNotFoundThe entity is unknown or not valid (culture, timezone or signature policy )
EntityAlreadyExistsThe entity already exists (policy, security context, intermediate CA or trusted root)
EntityUnusableThe entity is unusable (policy or security context)
EntityIsReadOnlyThe entity is read-only (timestamp or policy)
SecurityContextRequiredNo given security context
PKCertificateMalformedThe provided certificate content is malformed
ValidationErrorDuring the signature or the authentication, the signing certificate was not valid. For more information on this error see the tables below
ClientSignatureNotSetNo client signature was provided
ClientSignatureAlreadySetThe client signature is provided twice
ToSignHashNotAvailableThe hash to be signed is not avaliable
CertificateMismatchThe certificate content differes from the one that started the signature
InvalidRequestThe request is not valid
TimestampingUnavailableThe timestamping service is not available
EndUserCertificateEnd-user certificates cannot be added as trusted root or intermediate CA
CACertificateIntermediate CA certificates cannot be added as trusted root
SelfSignedCertificateSelf-signed certificates cannot be added as intermediate CA
TimestampPlanRequiredNo given timestamp plan
InvalidPdfThe provided PDF is not valid
InvalidVisualRepresentationThe provided visual representation is not valid
MissingDataHashNo given data hash
CannotApplyPdfMarksThe PDF is already digitally signed and the AbortIfSigned parameter was set as True
BadDigestThe given digest does not match the received content
InvalidXmlThe provided XML is not valid
TransactionLimitAlreadyExistsThe transaction limit already exists, to update it use the PUT request method
InvalidSortFieldThe sort field provided could not be found in the query
FontSizeZeroThe font size must be greater than 0
InvalidPageThe visual representation positioned in invalid page
FileDownloadFailedFile download has failed
InvalidElementTypeUnknown pdf mark element type
UnsupportedCMSContentTypeThe provided CMS content type is not supported
UnsupportedDigestAlgorithmThe provided digest algorithm is not supported
UnsupportedSignatureAlgorithmThe provided signature algorithm is not supported
PadesPositionNotFilledPadesPositionModel must have either Auto or Manual fields filled
InvoiceNotCreatedThe searched invoice was not created yet
InvalidCadesThe provided p7s file is not valid
InvalidTokenThe provided signature token is not valid

Validation Errors

Validation errors occur during signatures or authentications, or they are returned by signature validation endpoints.

Validation ErrorMeaning
CertificateNotYetValidAt the date reference, the certificate is not valid yet
CertificateExpiredAt the date reference, the certificate has expired
CertificateRevokedAt the date reference, the certificate has been revoked
CertificateIssuerNotFoundThe issuer of the certificate could not be found
CertificateRevocationStatusUnknownThe revocation status of the certificate could not be verify. Mostly, REST PKI could not access the certificate's CRLs
CertificateChainRootNotTrustedThe root of the certificate chain is not trusted
InvalidCertificateSignatureThe signature is not valid based on the provided certificate's public key
DecodeErrorCould not decode a part of the object being validated
RequiredSignedAttributeMissingThe signature does not have all required signed attributes
ForbiddenSignedAttributePresentThe signature have one or more forbidden signed attributes
RequiredUnsignedAttributeMissingThe signature does not have all required unsigned attributes
ForbiddenUnsignedAttributePresentThe signature have one or more forbidden unsigned attributes
ContentTypeMismatchThe content-type attribute specifies a different content-type than that of the CMS
MessageDigestMismatchThe message digest attribute specifies a digest that does not match the digest of the signed data
SigningCertificateDigestMismatchThe signing certificate attribute specifies a certificate digest that does not match the digest of the signer's certificate
SignatureAlgorithmValidationFailedThe signature algorithm validation failed
RevocationDataIssuedBeforeGracePeriodThe revocation data values were issued before the grace period
UncertifiedDateReferenceThe date reference used to validate the signature is not certified
SignaturePolicyMismatchDuring validation, the signature policy differes from the given policy
SigningTimeOutOfCertificateValidityThe signature happened out of the certificate validity period
UnknownSignedAttributesPresentThe signature contains one or more unknown signed attributes
UnknownUnsignedAttributesPresentThe signature contains one or more unknwon unsigned attributes
TimestampWithMoreThanOneSignerThe timestamp has more than one signer
TimestampMessageImprintMismatchThe timestamp message-imprint is not the same as the computed message-imprint
CompleteReferencesMismatchThe certificate's complete reference is not valid
InvalidSignatureTimestampThe signature timestamp is not valid
InvalidReferencesTimestampThe reference timestamp is not valid
InvalidArchiveTimestampThe archive timestamp is not valid
InvalidKeyUsageThe signing-certificate does not have permission for performing this type of operation
InvalidOcspResponseThe OCSP's response is not valid
UnauthorizedIssuerThe certificate issuer is not a CA
UnknownRootTrustStatusThe root trust status is unknown
InvalidTslThe TSL is not valid
InvalidCrlThe certificate CRLs are not valid
CertificateIssuerValidThe certificate issuer is valid and trusted
CertificateIssuerInvalidThe certificate issuer is not valid or not trusted
CertificateValidationFailedThe certificate validation failed
SignatureVulnerableToSignerSubstitutionThe signature is vulnerable to signer substitution
InvalidXmlSignatureSchemaThe signature schema (XSD) is not valid
XmlDSigCoreValidationFailedThe core validation of the signature failed (the digest or signature are incorrect)
SignatureTimestampIgnoredThe signature's timestamp was ignored
InvalidCertificationPathLenThe CAs certification path is not valid
SigningCertificateNotFoundThe certificate of the signer was not found
UnauthorizedACIssuerThe certificate issuer is a CA, therefore cannot be used to issue attribute certificates
AlgorithmNotAllowedThe algorithm is not allowed
UnacceptableSignaturePolicyThe signature policy is not acceptable

500 - Internal Server Error

An unexpected error has occurred on the server.