Lines Matching refs: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()
506 * Returns whether the status is informational (i.e. 1xx).
508 public static boolean isStatusInformational(int status) {
509 return (status >= 100 && status < 200);
513 * Returns whether the status is a success (i.e. 2xx).
515 public static boolean isStatusSuccess(int status) {
516 return (status >= 200 && status < 300);
520 * Returns whether the status is an error (i.e. 4xx or 5xx).
522 public static boolean isStatusError(int status) {
523 return (status >= 400 && status < 600);
527 * Returns whether the status is a client error (i.e. 4xx).
529 public static boolean isStatusClientError(int status) {
530 return (status >= 400 && status < 500);
534 * Returns whether the status is a server error (i.e. 5xx).
536 public static boolean isStatusServerError(int status) {
537 return (status >= 500 && status < 600);
555 public static boolean isStatusCompleted(int status) {
556 return (status >= 200 && status < 300) || (status >= 400 && status < 600);
605 * Warning: there might be other status values that indicate success
642 * The lowest-valued error status that is not an actual HTTP status code.
663 * Warning: there will be other status values that indicate errors in
719 public static String statusToString(int status) {
720 switch (status) {
745 default: return Integer.toString(status);