List API errors
const url = 'https://api.test.certilia.com/pades/errors';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.test.certilia.com/pades/errors \ --header 'Authorization: Bearer <token>'Returns all errors the API can return: type, code, public name and descriptions in English (EN) and Croatian (HR).
The codes in the list have no API prefix: error 5 in the list is 65 in a PAdES error response
(error.code).
Authorizations
Odjeljak „Authorizations”Responses
Odjeljak „Responses”All API errors.
List of all API errors.
object
Version of the error list.
Note.
Platform.
API code, the first character of every error code this API returns (6 for PAdES).
Explanation of the error code structure.
Sample error responses as objects. Currently empty; see sampleErrorMessagesString.
Error response.
object
Error details.
object
Trace identifier, if the response has one. Send it to support when you report a problem.
Error type, the group the error belongs to.
Error code. The first digit is the API code (6 for this API); the remaining digits are the error
number. Example: 65 is error 5 of API 6.
HTTP status code.
Public error name.
Error description, in Croatian. If a required field is missing from the request, type and code are
empty, message is ERROR, and this field lists the missing fields in English (for example
The Token field is required.).
Additional information about the error.
Language of description.
Public error name, the same as message (kept for compatibility).
Sample error responses as text, one string per sample.
All errors of the API.
One API error.
object
Error number, without the API prefix: 5 here is 65 in a PAdES error response (error.code).
Error type, the group the error belongs to.
Public error name (the same as error.message in an error response).
The error description in English (EN) and Croatian (HR).
The error description in one language.
object
Error description.
Language of the description, EN or HR.
Example
{ "version": "PAdES-AllInOne,11/15/2026 19:53:14", "note": "For PAdES", "platform": "Certilia", "codePrefix": "6", "codeExplanation": "Code = 65 => First digit (6) of code is instance prefix, remainder (5) is actual error code.", "sampleErrorMessages": [], "sampleErrorMessagesString": [ "sample 01 => {'error':{'type':'HG_INVALID_REQUEST','code':'65','message':'INVALID_PERSON_NAME_SURNAME','description':'Neispravno ime i prezime osobe.'}}" ], "Errors": [ { "code": "5", "type": "HG_INVALID_REQUEST", "name": "INVALID_PERSON_NAME_SURNAME", "description": [ { "description": "Invalid person's name and surname.", "language": "EN" }, { "description": "Neispravno ime i prezime osobe.", "language": "HR" } ] } ]}