catch exception on HEAD 404 request