code: final private HashMap<String, Object> getHttpDetails(final String message, 
        final IncomingDataPoint dp) {
      final HashMap<String, Object> map = new HashMap<String, Object>();
      map.put("error", message);
      map.put("datapoint", dp);
      return map;
    }
docs: Simple helper to format an error trying to save a data point
  @param message The message to return to the user
  @param dp The datapoint that caused the error
  @return A hashmap with information
  @since 2.0