Code example for HttpResponse

Methods: setEntity, setStatusCode

0
														+ "\"domain\": \"global\"," 
														+ "\"reason\": \"serviceUnavailable\"," 
														+ "\"message\": \"" + message + "\""
												+ "} ] }" 
											+ "}"); 
			response.setEntity(new JsonResponse(body));
			response.setStatusCode(HttpURLConnection.HTTP_UNAVAILABLE);
			setCacheHeaders(response);
		} catch (JSONException e) {
			e.printStackTrace();
		} 
	} 
	 
}