404 Not Found

HTTP 404 Not Found is a 4xx client error status. The server cannot find anything at the requested URL.

404Status code
4xxClient error
YesCacheable by default
RFC 9110 §15.5.5Defined in

Common causes

What to do

For moved pages add a 301 redirect. Serve a helpful 404 page with search and links. Search engines drop URLs that keep returning 404.

Example response

HTTP/1.1 404 Not Found
Content-Type: application/problem+json

{"status":404,"title":"Not Found"}

Returning 404 in code

Express   res.status(404).json({ … });
Flask     return jsonify(…), 404
PHP       http_response_code(404);
Go        w.WriteHeader(404)
nginx     return 404;

Other 4xx codes

Frequently asked questions

What does HTTP 404 mean?
The server cannot find anything at the requested URL.
Is 404 an error?
Yes. It is a client error: the request needs to change before retrying.
Does a 404 hurt SEO?
Not for the rest of your site. The page itself drops out of search results, so redirect it if the content moved.