Automatic response wrapping for route callbacks