Code example for HttpResponse

Methods: setEntitysetStatusCode

0
														+ "\"domain\": \"global\"," 
														+ "\"reason\": \"serviceUnavailable\"," 
														+ "\"message\": \"" + message + "\""
												+ "} ] }" 
											+ "}"); 
			response.setEntity(new JsonResponse(body));
			response.setStatusCode(HttpURLConnection.HTTP_UNAVAILABLE);
			setCacheHeaders(response);
		} catch (JSONException e) {
			e.printStackTrace();
		} 
	} 
	 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE