public static bool IsInternalServerError(this Exception ex) { return HasStatus(ex as WebException, HttpStatusCode.InternalServerError); }