Read HTTP and DNS errors separately
03HTTP status describes the HTTP exchange; DNS RCODE describes the embedded DNS result.
Keep an HTTP transport failure separate from that valid DNS negative answer.
Key idea: A valid DNS error response can be carried in a successful HTTP 2xx response.
Rules & examples
A valid DNS error response can be carried in a successful HTTP 2xx response.
- A valid DNS error response can be carried in a successful HTTP 2xx response.
- An HTTP failure is not itself a DNS NXDOMAIN result.
The drawing is a simplified worked example. Follow the linked RFC and its updates for implementation requirements.
Sources
New to this? Start hereA quick picture + helpful background
A request starts a conversation.
A client asks for a resource. A server sends a response. The method, address, headers, and status explain what that conversation means.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.