Lines Matching refs:statusCode
64 * @param statusCode the status code needs to be in the ranges [100, 299], [400, 599].
73 public WebResourceResponse(String mimeType, String encoding, int statusCode,
76 setStatusCodeAndReasonPhrase(statusCode, reasonPhrase);
122 * @param statusCode the status code needs to be in the ranges [100, 299], [400, 599].
127 public void setStatusCodeAndReasonPhrase(int statusCode, String reasonPhrase) {
129 if (statusCode < 100)
130 throw new IllegalArgumentException("statusCode can't be less than 100.");
131 if (statusCode > 599)
132 throw new IllegalArgumentException("statusCode can't be greater than 599.");
133 if (statusCode > 299 && statusCode < 400)
134 throw new IllegalArgumentException("statusCode can't be in the [300, 399] range.");
146 mStatusCode = statusCode;
218 public WebResourceResponse(boolean immutable, String mimeType, String encoding, int statusCode,
223 mStatusCode = statusCode;