Errors

An error is reported by an XML output with a short description of the error. Additionally, an HTTP status code will be set (e.g. 403 on authentication error).

Examples

HMAC authentication error

<epubli_api_error xmlns="http://www.epubli.de/spec" version="1.0"> <date>2010-02-09T14:13:33+01:00</date> <error>HMAC validation error 31</error> <status>403</status> <details> <detail>HMAC invalid</detail> <detail>Signature problem</detail> <detail>Signature missing</detail> <detail>Signature wrong. Serialized payload: </detail> <detail>Timestamp problem</detail> </details> </epubli_api_error>

Authentication error

<epubli_api_error> <date>2012-05-21T11:16:26+02:00</date> <error>authentication failed</error> <status>403</status> </epubli_api_error>

Missing SSL connection (https)

<epubli_api_error> <date>2012-05-22T14:56:52+02:00</date> <error>no SSL connection</error> <status>403</status> </epubli_api_error>

« Back to the API menu