[ios] [android] Use Response::NotFound in other HTTP implementations too

This commit is contained in:
John Firebaugh
2015-09-29 17:27:38 -07:00
parent 7112d43609
commit 686c967c8e
5 changed files with 26 additions and 2 deletions

View File

@@ -703,6 +703,9 @@ void HTTPCURLRequest::handleResult(CURLcode code) {
} else if (responseCode == 200) {
response->status = Response::Successful;
return finish(ResponseStatus::Successful);
} else if (responseCode == 404) {
response->status = Response::NotFound;
return finish(ResponseStatus::Successful);
} else if (responseCode >= 500 && responseCode < 600) {
// Server errors may be temporary, so back off exponentially.
response->status = Response::Error;