handle 404 on head check