The following is a list of possible errors returned from the Express API.
If an error response is returned, an action will not be credited to your account.
An error response will come in the following JSON format:
{
"code": 20,
"message": "Error message"
}
The message
property may be changed at any time, so it is recommended you use the code
property to parse errors.
Errors
Code | Description |
---|---|
20 | Invalid input. 'file' was either empty or invalid |
21 | The URL provided did not return a PDF, or was inaccessible |
22 | License key was not provided |
24 | The account is cancelled |
25 | The account has expired |
26 | The origin of the request does not match the domain on the license key |
27 | Client side key was provided for a server side request |
28 | Server side key was provided for a client side request |
30 | Access denied |
40 | Unknown |
Network errors
Errors may occur before the server receives your request. The most probably cause for this is that your request body is too large. If you receive errors from the API and your request body is over 5.5mb, try uploading your file to a remote location and passing the url to the API instead.