Secure-eBook

Secure-eBook Documentation

Secure-eBook SDK : error

When something is not happening as expected, the error message is returned.

This message can be returned in answer to any Secure-eBook SDK command

<error>

This is the root element of this XML message. It will contain english text describing the encountered error.

Parameters:

NameTypeDescription
messageidnumberThis number identified the message or message type of the returned error. You can use this number to build your own message errors that you will show your clients.

Error Messages

Parameters:

Message IDDescription
10XML message format error. The text of the error message will describe what was wrong with the message. You should never encounter this error when your code is in production
50Specified vendor not found. The vendor code specified in your request message was not found in the Secure-eBook database.
51Specified vendor account is inactive. The vendor must have activated his account by purchasing tokens before generating keys with the SDK. The SDK can still be used in test mode for inactive accounts.
55SDK not enabled. The vendor was found, but SDK was not enabled for his account. The vendor needs to turn on the SDK from his Secure-eBook account.
60Specified product not found. The product code specified in your request message was not found in the Secure-eBook database. The exact product codes will be specified in the content of the error tag.
70Product no longer protected by Secure-eBook. This product is no longer under Secure-eBook protection. You should log into your Secure-eBook account and verify the status of your product and Secure-eBook account.
80Invalid confirmation code. The confirmation code supplied within your confirm message was not understood by the Secure-eBook server. This is usually due to a bad “SDK Secret Keyword”.
81Invalid confirmation. Your answer was not received fast enough or the IP of the confirmation was not the same IP that sent the request.
1000Error communicating with server (SDK Error).
1010Token not received from server (SDK Error).
1020Activation keys not received from server (SDK Error).
1030Invalid XML format received from server (SDK Error).
10XXXHTTP error code where xxx is the actual HTTP error (400, 500, etc.) (SDK Error).

Message Template

<?xml version="1.0"?>
<error messageid="[number]">
  ERROR MESSAGE TEXT
</error>