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
This is the root element of this XML message. It will contain english text describing the encountered error.
Parameters:
| Name | Type | Description |
|---|---|---|
| messageid | number | This 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. |
Parameters:
| Message ID | Description |
|---|---|
| 10 | XML 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 |
| 50 | Specified vendor not found. The vendor code specified in your request message was not found in the Secure-eBook database. |
| 51 | Specified 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. |
| 55 | SDK 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. |
| 60 | Specified 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. |
| 70 | Product 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. |
| 80 | Invalid 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”. |
| 81 | Invalid confirmation. Your answer was not received fast enough or the IP of the confirmation was not the same IP that sent the request. |
| 1000 | Error communicating with server (SDK Error). |
| 1010 | Token not received from server (SDK Error). |
| 1020 | Activation keys not received from server (SDK Error). |
| 1030 | Invalid XML format received from server (SDK Error). |
| 10XXX | HTTP error code where xxx is the actual HTTP error (400, 500, etc.) (SDK Error). |
<?xml version="1.0"?> <error messageid="[number]"> ERROR MESSAGE TEXT </error>