Details
-
Bug
-
Status: Accepted
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
Returning a 404 error for a condition that's a known temporary condition is confusing from a client's perspective. A client wants to know how to recover from various error conditions. A 404 error condition should be distinct from a "server is not yet ready, but will be shortly" condition (which should probably be reported as a 503 "unavailable" error).
if (response->code == process::http::Status::NOT_FOUND) { // This could happen if the master libprocess process has not yet set up // HTTP routes. LOG(WARNING) << "Received '" << response->status << "' (" << response->body << ") for " << call.type(); return; }