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.split('::').last
  [{ status: error_name, message: err.message }, http_status]
end