Add 404 to pages endpoint