Pass response to mocks source functions

This will allow the functions to do things like respond with
a statusCode of 503 for simulating service unavailable.