code: public static Response getExceptionResponse(final int status, final String msg) {
  		return Response.status(status).entity(new LinkedHashMap<String, Object>() {
  			private static final long serialVersionUID = 1L;
  			{
  				put("code", status);
  				put("message", msg);
  			}
  		}).type(MediaType.APPLICATION_JSON).build();
  	}
docs: Returns an exception/error response as a JSON object.
  @param status HTTP status code
  @param msg message
  @return a JSON object