Index: net/base/net_errors.cc |
diff --git a/net/base/net_errors.cc b/net/base/net_errors.cc |
index ddba87b94c59fbbd39e06aae4a2725bca19126e1..0406e0118437609e55524a56974357b8c071827a 100644 |
--- a/net/base/net_errors.cc |
+++ b/net/base/net_errors.cc |
@@ -3,6 +3,7 @@ |
// found in the LICENSE file. |
#include "net/base/net_errors.h" |
+#include "base/strings/string_number_conversions.h" |
namespace net { |
@@ -31,6 +32,10 @@ std::string ErrorToShortString(int error) { |
return std::string("ERR_") + error_string; |
} |
+std::string HttpErrorCodeToString(int error) { |
+ return std::string("HTTP_ERROR_") + base::IntToString(error); |
+} |
+ |
bool IsCertificateError(int error) { |
// Certificate errors are negative integers from net::ERR_CERT_BEGIN |
// (inclusive) to net::ERR_CERT_END (exclusive) in *decreasing* order. |