Switch to render instead of redirect to get proper 404 content