@Test public void testIsError() { assertFalse(HttpStatus.ACCEPTED.isError()); assertTrue(HttpStatus.BAD_REQUEST.isError()); }
public boolean isError() { return code >= 400; }
HttpStatus implements Cloneable { public boolean isError() { return code >= 400; } }
HttpStatus implements Cloneable { public boolean isError() { return code >= 400; } private  HttpStatus(int code, String message, boolean register); protected  HttpStatus(int code, String message); }
HttpStatus implements Cloneable { public boolean isError() { return code >= 400; } private  HttpStatus(int code, String message, boolean register); protected  HttpStatus(int code, String message); static HttpStatus valueOf(int code); static HttpStatus valueOfStatusLine(String statusLine); int getCode(); String getMessage(); String getStatusLine(); boolean isError(); HttpStatus duplicate(String message); @Override HttpStatus clone(); @Override String toString(); @Override boolean equals(Object httpStatus); @Override int hashCode(); }
HttpStatus implements Cloneable { public boolean isError() { return code >= 400; } private  HttpStatus(int code, String message, boolean register); protected  HttpStatus(int code, String message); static HttpStatus valueOf(int code); static HttpStatus valueOfStatusLine(String statusLine); int getCode(); String getMessage(); String getStatusLine(); boolean isError(); HttpStatus duplicate(String message); @Override HttpStatus clone(); @Override String toString(); @Override boolean equals(Object httpStatus); @Override int hashCode(); static final HttpStatus CONTINUE; static final HttpStatus SWITCHING_PROTOCOLS; static final HttpStatus PROCESSING; static final HttpStatus OK; static final HttpStatus CREATED; static final HttpStatus ACCEPTED; static final HttpStatus NON_AUTHORITATIVE_INFORMATION; static final HttpStatus NO_CONTENT; static final HttpStatus RESET_CONTENT; static final HttpStatus PARTIAL_CONTENT; static final HttpStatus MULTI_STATUS; static final HttpStatus MULTIPLE_CHOICES; static final HttpStatus MOVED_PERMANENTLY; static final HttpStatus FOUND; static final HttpStatus SEE_OTHER; static final HttpStatus NOT_MODIFIED; static final HttpStatus USE_PROXY; static final HttpStatus TEMPORARY_REDIRECT; static final HttpStatus BAD_REQUEST; static final HttpStatus UNAUTHORIZED; static final HttpStatus PAYMENT_REQUIRED; static final HttpStatus FORBIDDEN; static final HttpStatus NOT_FOUND; static final HttpStatus METHOD_NOT_ALLOWED; static final HttpStatus NOT_ACCEPTABLE; static final HttpStatus PROXY_AUTHENTICATION_REQUIRED; static final HttpStatus REQUEST_TIMEOUT; static final HttpStatus CONFLICT; static final HttpStatus GONE; static final HttpStatus LENGTH_REQUIRED; static final HttpStatus PRECONDITION_FAILED; static final HttpStatus REQUEST_TOO_LONG; static final HttpStatus REQUEST_URI_TOO_LONG; static final HttpStatus UNSUPPORTED_MEDIA_TYPE; static final HttpStatus REQUESTED_RANGE_NOT_SATISFIABLE; static final HttpStatus EXPECTATION_FAILED; static final HttpStatus INSUFFICIENT_SPACE_ON_RESOURCE; static final HttpStatus METHOD_FAILURE; static final HttpStatus UNPROCESSABLE_ENTITY; static final HttpStatus LOCKED; static final HttpStatus FAILED_DEPENDENCY; static final HttpStatus INTERNAL_SERVER_ERROR; static final HttpStatus NOT_IMPLEMENTED; static final HttpStatus BAD_GATEWAY; static final HttpStatus SERVICE_UNAVAILABLE; static final HttpStatus GATEWAY_TIMEOUT; static final HttpStatus HTTP_VERSION_NOT_SUPPORTED; static final HttpStatus INSUFFICIENT_STORAGE; }