/** * Create a new status from status code and reason phrase. * * @param statusCode Response status code. * @param reasonPhrase Reason phrase. */ Status(final int statusCode, final String reasonPhrase) { this.code = statusCode; this.reason = reasonPhrase; this.family = getFamilyByStatusCode(code); }
private StatusImpl(int code, String reason) { this.code = code; this.reason = reason; this.family = ClientResponse.Status.getFamilyByStatusCode(code); }
private StatusImpl(int code, String reason) { this.code = code; this.reason = reason; this.family = ClientResponse.Status.getFamilyByStatusCode(code); }
/** * Create a new status from status code and reason phrase. * * @param statusCode Response status code. * @param reasonPhrase Reason phrase. */ Status(final int statusCode, final String reasonPhrase) { this.code = statusCode; this.reason = reasonPhrase; this.family = getFamilyByStatusCode(code); }