Variant

error-code

Lookup error codes.

variant error-code {
  access-denied,
  invalid-argument,
  name-unresolvable,
  temporary-resolver-failure,
  permanent-resolver-failure,
  other(option​<string>),
}

Cases

CasePayloadDescription
access-deniedAccess denied.
invalid-argumentname is a syntactically invalid domain name or IP address.
name-unresolvableName does not exist or has no suitable associated IP addresses.
temporary-resolver-failureA temporary failure in name resolution occurred.
permanent-resolver-failureA permanent failure in name resolution occurred.
otheroption​<string>A catch-all for errors not captured by the existing variants. Implementations can use this to extend the error type without breaking existing code.