public static bool IsAny500(this Exception ex) { var status = ex.GetStatus(); return status >= HttpStatusCode.InternalServerError && (int)status < 600; }