class Syntropy::RPCAPI

def error_response(err)

def error_response(err)
  http_status = err.respond_to?(:http_status) ? err.http_status : INTERNAL_SERVER_ERROR
  error_name = err.class.name
  [{ status: error_name, message: err.message }, http_status]
end