Sendzovo uses standard HTTP status codes to communicate the result of API requests.
| Status | Meaning |
|---|---|
200 |
Request completed successfully. |
202 |
Email accepted and queued. |
400 |
Invalid request. |
401 |
Bearer token is missing, invalid or revoked. |
402 |
Insufficient verification allowance or related billing restriction. |
403 |
Account, domain, key type or credential permission does not allow the request. |
422 |
Validation or request-processing error. |
429 |
Too many requests. |
PHP SDK errors
API validation, authentication, billing and domain errors
are exposed through SendzovoException with
the HTTP status and decoded API response when available.
<?php
use Sendzovo\Exceptions\SendzovoException;
try {
$result = $sendzovo->messages()->get(
'MESSAGE_ID'
);
} catch (SendzovoException $e) {
echo $e->getMessage();
echo $e->statusCode();
print_r($e->response());
}
Ready to send?
Start building
Create a free Sendzovo account, verify your domain and send your first email in minutes.