Skip to content
English
  • There are no suggestions because the search field is empty.

What can I do if I encounter errors with the OpusDNS API?

What each HTTP status code means and how to fix the request

Every error response of the OpusDNS API has an HTTP status code and a body in the problem details format (application/problem+json). The body contains:

  • type and title: the kind of error
  • status: the HTTP status code
  • code: a machine-readable error code, for example ERROR_INVALID_TOKEN
  • detail: a description of what went wrong

For validation errors, the body can also contain an errors list. Its loc entry names the affected field. Every response also carries the header x-server-request-id. Note this request ID when you contact support.

 

Common status codes

  • 400 (Bad Request): the request is malformed or contains invalid parameters.
  • 401 (Unauthorized): valid credentials are missing. A common cause: the code samples in the API reference show an Authorization: Bearer placeholder as long as no authentication type is selected. If you work with an API key, send it in the X-Api-Key header.
  • 403 (Forbidden): access is denied despite valid authentication. Check the role of your API key (see Roles and Permissions for Users and API Keys) and any IP restrictions under Developer > API Security.
  • 404 (Not Found): the requested resource does not exist.
  • 405 (Method Not Allowed): the HTTP method is not allowed for this resource.
  • 409 (Conflict): the request conflicts with the current state of the resource.
  • 410 (Gone): the route is no longer available. Check the API reference for the current endpoint.
  • 422 (Validation Error): the request is correctly formatted but contains data that does not meet the validation rules.
  • 429 (Too Many Requests): the resource is busy or you retried too early, for example while other DNS changes to the same zone are still being applied, or when you request a verification email again too soon. Wait for the time given in the Retry-After header and try again.
  • 500, 502, 503: a temporary problem on our side. Try again later. If the error persists, contact support.

You find the possible responses of each endpoint in the API reference at developers.opusdns.com.

 

How to resolve errors

  1. Read code and detail: they usually name the cause.
  2. Check your input: formats, lengths, required fields and typos.
  3. Compare with the documentation: make sure your request matches the endpoint in the API reference.
  4. Check TLD requirements: some TLDs need additional data for registrations or transfers. See Understanding TLD-Specific Information: Where to Find It and What It Means.
  5. Look up the request: in Developer > Request History you can find the request and its details. See Reading API Request History.
  6. Contact support: email support@opusdns.com or open a ticket in the dashboard under Support in the card Support center. Include the request ID.

Banner An API developers actually love with the button Test the Sandbox