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