Code examples for StatusLine

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
62:	if (status.getStatusCode() != 200) 
63:	throw new IOException("Non-successful HTTP response: " + status.getReasonPhrase()); 
Full Snippet Info
8
CodeRank
132:	if (status.getStatusCode() != 200) { // HTTP 200 is success. 
Full Snippet Info
7
CodeRank
201:	int statusCode = status.getStatusCode(); 
-
232:	throw new HttpException(statusCode, status.getReasonPhrase()); 
Full Snippet Info
6
CodeRank
220:	if(status.getStatusCode() >= 300) { 
221:	sendFailureMessage(new HttpResponseException(status.getStatusCode(), status.getReasonPhrase()), responseBody); 
Full Snippet Info
6
CodeRank
80:	return httpStatusLine == null ? null : httpStatusLine.getReasonPhrase(); 
Full Snippet Info
6
CodeRank
132:	if (status.getStatusCode() != 200) { // HTTP 200 is success. 
Full Snippet Info
6
CodeRank
134:	if (status.getStatusCode() != 200) { // HTTP 200 is success. 
135:	if (Config.LOGD) Log.d(TAG, "HTTP error: " + status.getReasonPhrase()); 
Full Snippet Info
6
CodeRank
234:	if(status.getStatusCode() >= 300) { 
235:	sendFailureMessage(new HttpResponseException(status.getStatusCode(), status.getReasonPhrase()), responseBody); 
-
237:	sendSuccessMessage(status.getStatusCode(), responseBody); 
Full Snippet Info
6
CodeRank
333:	int statusCode = status.getStatusCode(); 
Full Snippet Info
6
CodeRank
79:	this.statusCode = statusLine.getStatusCode(); 
-
96:	OAuthException unauthorizedClientException = new UnauthorizedClientException(statusLine.getReasonPhrase()); 
Full Snippet Info
6
CodeRank
60:	if (200 <= status.getStatusCode() && status.getStatusCode() < 300) { 
-
63:	} else if (status.getStatusCode() == 304) { 
-
66:	throw new HttpResponseException(status.getStatusCode(), status.getReasonPhrase()); 
Full Snippet Info
6
CodeRank
47:	this.statusCode = this.statusLine.getStatusCode(); 
Full Snippet Info
6
CodeRank
70:	if (statusLine.getStatusCode() >= 300) { 
71:	throw new HttpResponseException(statusLine.getStatusCode(), 
72:	statusLine.getReasonPhrase()); 
Full Snippet Info
6
CodeRank
122:	if (status.getStatusCode() >= 300) { 
123:	responseHandler.onFailure(protocol, new HttpResponseException(status.getStatusCode(), status.getReasonPhrase())); 
Full Snippet Info
6
CodeRank
18:	if (statusLine.getStatusCode() != 200) { 
Full Snippet Info
5
CodeRank
16:	if (statusLine.getStatusCode()>=300) { 
17:	throw new HttpResponseException(statusLine.getStatusCode(), 
18:	statusLine.getReasonPhrase()); 
Full Snippet Info
5
CodeRank
53:	if (statusLine.getStatusCode() == HttpStatus.SC_OK) { 
-
60:	throw new IOException(statusLine.getReasonPhrase()); 
Full Snippet Info
5
CodeRank
237:	if(status.getStatusCode() >= 300) { 
238:	sendFailureMessage(new HttpResponseException(status.getStatusCode(), status.getReasonPhrase()), ""); 
Full Snippet Info
5
CodeRank