Move the callback scope up one level so that customCallback option has access to res and req. Otherwise it's impossible to do anything like redirects within it.