{% trans %}PowerDNS API error{% endtrans %}{% if api_error.context.http_code %} (HTTP {{ api_error.context.http_code }}){% endif %}:
{{ api_error.message }}
{% endif %}
{% if api_error.context.http_code == 401 or api_error.context.http_code == 403 %}
{% trans %}Check that pdns_api.key in config/settings.php matches the API key configured in PowerDNS.{% endtrans %}
{% elseif api_error.context.http_code == 404 %}
{% trans %}Check that pdns_api.server_name matches what PowerDNS reports (default 'localhost').{% endtrans %}
{% elseif api_error.context.http_code >= 500 %}
{% trans %}PowerDNS rejected the request. Check the PowerDNS server log for the cause - a common trigger after importing zones directly into the PowerDNS database is a single malformed record that fails zone serialization.{% endtrans %}
{% else %}
{% trans %}Some features may be unavailable until the API is reachable again. Check your PowerDNS server log for details.{% endtrans %}
{% endif %}