Code example for HttpResponse

Methods: setEntity, setStatusCode

0
														+ "\"domain\": \"global\"," 
														+ "\"reason\": \"notImplemented\"," 
														+ "\"message\": \"" + message + "\""
												+ "} ] }" 
											+ "}"); 
			response.setEntity(new JsonResponse(body));
			response.setStatusCode(HttpURLConnection.HTTP_NOT_IMPLEMENTED);
			setCacheHeaders(response);
		} catch (JSONException e) {
			e.printStackTrace();
		} 
	} 
	 
	/** 
	 * Sends a 405 to the client. 
	 *  
	 * @param response The response object to use. 
	 * @param allowList A comma separated list of allowed HTTP methods for this resource. 
	 */ 
	protected void respondNotAllowed(HttpResponse response, String allowList) {