Not as far as I know . There is a way to add custom headers to the response …
… but it doesn’t document setting a code.
I’d assume you have to do that in your app. It should just be a few extra lines. Every language has a way to match a host and/or path and return a response (like a redirect to somewhere else) e.g Node/Express would probably be
app.get('/', function (req, res) {
res.redirect('https://www.example.com/example');
});