public static bool HasStatus(this WebException webEx, HttpStatusCode statusCode) { return GetStatus(webEx) == statusCode; }