API errors
Every failure the API can return, as an RFC 7807 problem document. The last segment of type is the stable code — branch on that, not on the wording.
400malformed_request— Malformed request401invalid_api_key— Invalid or missing API key403account_closing— Account is closing404not_found— Not found422confirmation_unavailable— Confirmation email cannot be sent422contact_cleaned— Address is marked cleaned422suppressed_cannot_resubscribe— Address cannot be resubscribed422validation_failed— Validation failed429rate_limited— Rate limit exceeded500server_error— Something went wrong on our end