Home | History | Annotate | Download | only in webkit

Lines Matching refs:statusCode

59      * @param statusCode the status code needs to be in the ranges [100, 299], [400, 599].
67 public WebResourceResponse(String mimeType, String encoding, int statusCode,
70 setStatusCodeAndReasonPhrase(statusCode, reasonPhrase);
114 * @param statusCode the status code needs to be in the ranges [100, 299], [400, 599].
119 public void setStatusCodeAndReasonPhrase(int statusCode, String reasonPhrase) {
120 if (statusCode < 100)
121 throw new IllegalArgumentException("statusCode can't be less than 100.");
122 if (statusCode > 599)
123 throw new IllegalArgumentException("statusCode can't be greater than 599.");
124 if (statusCode > 299 && statusCode < 400)
125 throw new IllegalArgumentException("statusCode can't be in the [300, 399] range.");
137 mStatusCode = statusCode;