not_allowed
Action not allowed. HTTP status 409.
The email deliverability action is not allowed right now. A notice cannot be closed when there is none or when it only ends by itself. A test email cannot be sent when the account has no email address or mail to it was reported as spam.
What to do
detail gives the reason. GET /api/v2/me/email-deliverability shows the same reasons in actions.canDismiss and actions.canSendTest. If mail was reported as spam, change the account email with POST /api/v2/me/actions/change-email instead of retrying.
Example
{ "type": "https://developer.hostup.se/errors/not_allowed", "title": "Action not allowed", "status": 409, "detail": "Action not allowed", "code": "not_allowed", "requestId": "req_01hxa3b4c5d6e7f8g9h0j1k2m3"}Branch on code, not on title or detail. When you contact support about it, include the requestId. More in Errors and retries.