Builds a JSONRPCResponse from the configured properties.
if both result and error are set, or neither is set.