Lines Matching defs:status
208 * The name of the column containing the current status of the download.
214 public static final String COLUMN_STATUS = "status";
218 * status changed in the download. Stored as a System.currentTimeMillis()
516 * Returns whether the status is informational (i.e. 1xx).
518 public static boolean isStatusInformational(int status) {
519 return (status >= 100 && status < 200);
523 * Returns whether the status is a success (i.e. 2xx).
525 public static boolean isStatusSuccess(int status) {
526 return (status >= 200 && status < 300);
530 * Returns whether the status is an error (i.e. 4xx or 5xx).
532 public static boolean isStatusError(int status) {
533 return (status >= 400 && status < 600);
537 * Returns whether the status is a client error (i.e. 4xx).
539 public static boolean isStatusClientError(int status) {
540 return (status >= 400 && status < 500);
544 * Returns whether the status is a server error (i.e. 5xx).
546 public static boolean isStatusServerError(int status) {
547 return (status >= 500 && status < 600);
565 public static boolean isStatusCompleted(int status) {
566 return (status >= 200 && status < 300) || (status >= 400 && status < 600);
615 * Warning: there might be other status values that indicate success
652 * The lowest-valued error status that is not an actual HTTP status code.
673 * Warning: there will be other status values that indicate errors in
729 public static String statusToString(int status) {
730 switch (status) {
755 default: return Integer.toString(status);