Can virtual service be created as a driver?

Can virtual service be created where virtual service will send request to external service and will get a response as a status code?