I run a small free video downloader — a plain PHP site on shared hosting, no framework, no database — and one morning in November an email from Google Search Console stopped me in my tracks. Some of my pages were blocked from its index because of a 4xx error. No list of URLs, no extra detail. Just "4xx".
My first thought was that something serious had broken. A tool page returning 404, perhaps, or a guide page lost in a bad upload. I went through the site the way a visitor would, checking each page with curl. The homepage came back 200. All eight tool pages: 200. The three guide pages: 200. The blog posts, the privacy page, the terms page, the about page: 200, every one. Nothing was missing.
So where was the 4xx?
The answer was in the server logs, and it was embarrassingly small. Every browser that visits a site asks for /favicon.ico automatically, whether you link to one or not. My homepage linked to an icon-192.png for the installable app, and I had assumed that covered it. It did not. A plain request for /favicon.ico hit a file that did not exist, and the server answered 404. Every visitor, every crawler, every tab — the same tiny error, over and over.
Why does that matter? A favicon 404 does not break a page for a human visitor. The tab shows a generic globe and life goes on. But a crawler is a machine that reads signals, and a 4xx on your own domain is a signal that something on the site is broken. Google's report did not name the file, so from my side it looked like a real page was down. The email was honest — something was returning 4xx — and my job was to find out what, not to argue with the report.
The fix took about five minutes, and that is part of the lesson. I made a proper favicon.ico from the same icon artwork, 2,771 bytes, and put it at the root of the site, next to index.php, where a browser looks for it by default. Then I checked it the same way I had checked everything else:
curl -I https://ramrom.io/favicon.ico HTTP 200, the right content type, the right size. I also kept the icon-192.png link in the homepage, because that is what the installable app uses — the two files do different jobs, and the site needs both.
There are a few things I took away from this that I now do on every site I touch.
First, check the logs before you check the pages. I wasted time re-checking pages that were fine because I assumed the 4xx had to be a page. The logs told the truth in seconds: one path, one status code, hundreds of hits.
Second, small files are still files. A favicon feels like decoration, so it is easy to treat it as optional. It is not optional — it is a request every browser makes, and an unanswered request is a broken link on your own site.
Third, do not guess at the fix. Generating the icon and then verifying it with curl -I took less time than the guessing had. On a tool site like ramrom.io, where visitors come to do one job and leave, a quiet 404 in the background is exactly the kind of thing that sits there for weeks because nobody sees it.
The email went away after the fix, and the site has carried a favicon ever since. Two thousand seven hundred and seventy-one bytes. It was the smallest bug I have fixed on this site, and the one that taught me the most about reading my own logs.
