code: static JsonRpcResponse error(JsonRpcError error, JsonElement id) {
      return new JsonRpcResponse(id, error, null);
    }
docs: Builds a new response for an identifier request and containing an error.
  
  @param error the error to return to the user
  @param id the identifier of the request for which this response if
  generated