I’d like to add why checking for 404 is not enough: https://beko.famkos.net/2020/02/01/48611/