node: handle response needs to know the type of request