A Resend error is an HTTP status code plus an error type such as validation_error or rate_limit_exceeded, with a message that usually names the fix. Most errors are 4xx and mean something in your request or account needs changing: an API key, an unverified domain, a missing field, or a quota. Only 500 and 503 point at Resend itself. Every code below comes from Resend’s errors reference, checked 16 November 2026.
Resend error codes at a glance
| Status | Error types | Usual cause | Retry? |
|---|---|---|---|
| 400 | validation_error, invalid_idempotency_key |
Invalid field, invalid key, or an idempotency key outside 1 to 256 characters | No |
| 401 | missing_api_key, restricted_api_key, validation_error |
No key, a sending-only key used for other actions, or an invalid key | No |
| 403 | validation_error, restricted_api_key, suspended_api_key, invalid_permission, email_above_quota |
Domain not verified, testing address, inactive or suspended key, plan limits | No |
| 404 | not_found |
Wrong endpoint URL | No |
| 405 | method_not_allowed |
Wrong HTTP method | No |
| 409 | concurrent_idempotent_requests, invalid_idempotent_request, resource_locked |
Idempotency key conflict or resource being updated | Later, or new key |
| 422 | missing_required_field, missing_required_parameter, invalid_attachment, invalid_parameter |
Missing or malformed data | No |
| 429 | rate_limit_exceeded, daily_quota_exceeded, monthly_quota_exceeded |
Too fast, or plan quota used | Yes, with backoff |
| 500 | application_error |
Unexpected error at Resend | Yes |
| 503 | service_unavailable, dns_lookup_failed |
Temporarily unavailable | Yes |
The errors you will most likely hit
403: domain not verified, or testing emails only
This is the most common Resend error for new projects. Resend has two 403 validation_error messages here: one says the sending domain is not verified, the other says testing emails can only be sent to your own address. Both have the same fix: add your domain in Resend, publish the DNS records it gives you, wait for verification, and use that domain in from. Make sure the from address uses the domain you verified.
401: missing or invalid API key
missing_api_key means the Authorization: Bearer re_... header was not sent. A 401 validation_error means the key is invalid, deleted or inactive. A 401 restricted_api_key means you used a sending-only key for something other than sending, such as listing domains; use a full-access key for that call. Check that your deployment actually has the environment variable you think it has.
422: missing or invalid fields
missing_required_field lists the fields you left out, typically from, to, subject, or a body. invalid_attachment means an attachment has neither content nor path. invalid_parameter usually means an id in the URL is not a valid UUID.
429: rate limits and quotas
Three different problems share this status:
rate_limit_exceeded: too many requests per second. Resend’s rate limit page gives a default of 10 requests per second per team, shared across all keys, withratelimit-remaining,ratelimit-resetandretry-afterheaders. Queue your sends and honorretry-after.daily_quota_exceeded: you hit your plan’s daily cap (100 a day on the free plan, per resend.com/pricing). It resets at midnight UTC.monthly_quota_exceeded: the monthly allowance is used. Upgrade, or enable pay-as-you-go on a paid plan.
Retrying a quota error within the same day or month will not help, so treat it differently from a rate limit.
409: idempotency conflicts
Resend supports an Idempotency-Key header. A 409 invalid_idempotent_request means you reused a key within 24 hours with a different request body, and concurrent_idempotent_requests means the first request with that key is still running. Use a key tied to the email (such as receipt-order-1042), not a random value per attempt.
500 and 503: Resend’s side
application_error, service_unavailable and dns_lookup_failed are temporary. Retry with exponential backoff and the same idempotency key, and check Resend’s status page. Our guide to checking whether Resend is down covers what to do in a longer incident.
Handling Resend errors in code
The Resend Node SDK returns { data, error } rather than throwing, per its Node.js guide, and takes the idempotency key as a second argument. If you want the HTTP status to decide on retries, the raw API is just as short:
const res = await fetch('https://api.resend.com/emails', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RESEND_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': 'receipt-order-1042',
},
body: JSON.stringify({
from: 'Acme <hello@acme.com>',
to: 'sam@example.com',
subject: 'Your receipt',
html: '<p>Thanks for your order.</p>',
}),
});
if (res.ok) {
const { id } = await res.json(); // keep it with your order record
} else if (res.status === 429 || res.status >= 500) {
// Put it back on the queue with a backoff delay and the same idempotency key.
// For daily or monthly quota errors, wait for the reset instead of retrying.
} else {
console.error('Resend rejected the request', res.status, await res.text()); // fix, do not retry
}
How Mailcandor compares
Mailcandor accepts Resend’s request shape at /v1/emails, so the request above works against https://api.mailcandor.com/v1/emails with a Mailcandor key, and the Resend SDKs can be pointed there with RESEND_BASE_URL=https://api.mailcandor.com/v1. Its errors use one shape, {"error": {"type", "message", "field"}}, Idempotency-Key works the same way, and rate limits are 5 requests a second on Starter, 10 on Pay as you go and 50 on Team, with ratelimit-* headers.
The free Starter plan matches Resend’s free volume (3,000 a month, 100 a day), and every plan has unlimited domains and inbound email. See switching from Resend, Mailcandor vs Resend, or pricing. Access is by request.