{"id":15789,"date":"2026-11-16T07:50:00","date_gmt":"2026-11-16T06:50:00","guid":{"rendered":"https:\/\/www.lukaswojcik.com\/blog\/?p=15789"},"modified":"2026-11-14T23:38:46","modified_gmt":"2026-11-14T22:38:46","slug":"handling-missing-pages-correctly-checking-404-errors-and-other-server-responses","status":"publish","type":"post","link":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/tutorials-en-digital-marketing\/handling-missing-pages-correctly-checking-404-errors-and-other-server-responses\/","title":{"rendered":"Handling Missing Pages Correctly: Checking 404 Errors and Other Server Responses"},"content":{"rendered":"<p>A missing page needs a clear message and an appropriate HTTP status. Random test paths reveal how a website handles such requests. Routing rules determine which file or application handles a requested path. Different responses can reflect different routing rules; the difference alone does not establish a contradiction or a configuration error.<\/p>\n<p>On 6 September 2026, twenty domains were tested with three path shapes each. The sixty saved responses form a historical sample, not a report of current behaviour.<\/p><figure class=\"lw-diagram\"><img decoding=\"async\" alt=\"Sixty historical responses: forty errors, fourteen redirects and six restricted responses\" height=\"580\" loading=\"lazy\" src=\"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/diagrams\/soft404-reviewed-15789-en-20261025.png?v=20261114\" width=\"1120\"\/><figcaption>Historical sample from 6 September 2026. Redirect targets were not fetched.<\/figcaption><\/figure>\n<h2>Three path shapes and their limits<\/h2>\n<p>A random name was requested without an extension, with <code>.html<\/code>, and with a trailing slash. These forms may reach different file, directory or application rules. Randomness reduces the chance of hitting existing content. It does not guarantee nonexistence or an uncached response: an application can generate content for arbitrary paths.<\/p>\n<h2>What the sixty responses show<\/h2>\n<p>The raw data contains 37 responses with 404, three with 410, and fourteen redirects: seven 301s, six 302s and one 308. Three responses returned 403 and another three returned 429. Access restrictions and rate limits describe the conditions of this measurement; neither the precise cause nor the normal missing-page response follows from those codes alone.<\/p>\n<p>Sixteen domains returned the same status for all three paths. Eleven consistently returned 404 or 410, three consistently redirected, and two consistently returned 403 or 429. Four domains returned different status codes across the path shapes.<\/p>\n<p>The recorded destinations distinguish the three domains that redirected every probe: Wikipedia redirected to its English host, Mozilla to a language path, and PHP to a search. The raw data does not support the earlier claim of two search destinations. The missing-page probes did not fetch the redirect targets.<\/p>\n<h2>No direct 200 does not rule out soft 404s<\/h2>\n<p>None of the sixty direct responses had status 200. This does not exclude soft-404 problems behind redirects. A soft 404 can arise when a successful response contains a missing-page message. Google evaluates content; status 200 does not guarantee indexing.<\/p>\n<p>The tool&#8217;s vocabulary comparison only indicates similar content. Shared navigation can increase overlap, while a dedicated error page can have little overlap with the front page. The inspected tool flags every direct 200 as a suspected soft 404, regardless of the similarity score. Confirmation requires checking the content and any redirect destination.<\/p>\n<h2>Distinguishing 404 from 410<\/h2>\n<p>404 means that no current representation was found, or that the server is unwilling to disclose existence. It does not specify whether the condition is permanent. 410 describes a resource that is no longer available and is likely to remain unavailable. RFC 9110 recommends 404 when permanence is unknown.<\/p>\n<p>Google treats 404 and 410 alike for the processing described here. A general promise that major crawlers stop sooner after 410 is therefore unsupported. In the sample, this website returned three 410 responses with 408 bytes of content each. Short is not empty. The tool&#8217;s threshold of fewer than 512 bytes proves neither absence of content nor absence of navigation.<\/p>\n<h2>Separating size from indexing<\/h2>\n<p>Sixteen of the forty 404\/410 responses exceeded 100 KiB in the recorded evaluation. Four were stored with a rounded size of 256 KiB, matching the reading limit of 262,144 bytes. Without complete response data and a retained truncation flag, an exact total size cannot be inferred. The measurement covered the captured response body, not the whole page cost including images, scripts and stylesheets.<\/p>\n<p>Useful error pages can provide navigation or search. Their size should be proportionate to that benefit. A claim that every crawler reads only the status code would be too broad.<\/p>\n<p>The tool detected no <code>noindex<\/code> markers in these responses. However, its simple HTML check misses cases such as reversed meta-attribute order. Non-detection therefore does not establish absence. A genuinely missing page needs an appropriate error status; <code>noindex<\/code> does not replace that meaning. A valid page intended to stay out of search results can legitimately use <code>noindex<\/code>.<\/p>\n<h2>Making the tested base address explicit<\/h2>\n<p>The checker first follows the reference page&#8217;s redirects, then builds a base from the final scheme, host and port. Random paths start at that host&#8217;s root: a reference page under \/en\/ therefore produces a probe such as \/probe-123 rather than \/en\/probe-123. This also applies to other language or application paths. This avoids certain preliminary host redirects but does not automatically test every section of a website.<\/p>\n<p>The earlier comparison of 49 redirects with 11 cannot be reproduced from the available measurement file. That file contains fourteen redirects. Comparable repeat measurements require the same scope and retrieval conditions, with intermediate destinations retained.<\/p>\n<h2>A bounded curl test<\/h2>\n<p>The following Bash example requires curl and OpenSSL. The example domain is a placeholder. A fresh random name is requested in three forms; the response headers also expose any <code>Location<\/code> destination. Redirects are initially not followed. Retrieval failures are reported separately and must not be interpreted as HTTP status 000.<\/p>\n<figure style=\"--cbb-digits:2\" class=\"cbb cbb--wrap cbb--numbers wp-block-code-beautifier-block-code\" data-lang=\"bash\"><figcaption class=\"cbb-head\"><span class=\"cbb-lang\">Shell<\/span><span class=\"cbb-actions\"><button type=\"button\" class=\"cbb-button cbb-button--wrap\" data-cbb-action=\"wrap\" aria-pressed=\"true\" title=\"Wrap long lines\"><svg aria-hidden=\"true\" focusable=\"false\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\"><path d=\"M2 4h12M2 8h9.5a2.5 2.5 0 0 1 0 5H8m0 0 1.5-1.5M8 13l1.5 1.5M2 12h3\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\/><\/svg><span class=\"cbb-sr\">Wrap long lines<\/span><\/button><button type=\"button\" class=\"cbb-button cbb-button--copy\" data-cbb-action=\"copy\" data-cbb-done=\"Copied\" data-cbb-failed=\"Press Ctrl+C to copy\"><svg aria-hidden=\"true\" focusable=\"false\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\"><rect x=\"5.5\" y=\"5.5\" width=\"8\" height=\"8.5\" rx=\"1.5\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\"\/><path d=\"M10.5 3.5V3A1.5 1.5 0 0 0 9 1.5H4A1.5 1.5 0 0 0 2.5 3v6.5A1.5 1.5 0 0 0 4 11h.5\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\"\/><\/svg><span class=\"cbb-button-label\" aria-live=\"polite\">Copy<\/span><\/button><\/span><\/figcaption><pre class=\"cbb-pre\" tabindex=\"0\"><code class=\"cbb-code language-bash\" style=\"counter-reset:cbb-line 0;\"><span class=\"cbb-line\">base=<span class=\"cbb-string\">\"https:\/\/www.example.com\"<\/span>\n<\/span><span class=\"cbb-line\">name=<span class=\"cbb-string\">\"probe-$(openssl rand -hex 12)\"<\/span> <span class=\"cbb-operator\">||<\/span> <span class=\"cbb-keyword\">exit<\/span> <span class=\"cbb-number\">1<\/span>\n<\/span><span class=\"cbb-line\"><span class=\"cbb-keyword\">for<\/span> path <span class=\"cbb-keyword\">in<\/span> <span class=\"cbb-string\">\"<\/span><span class=\"cbb-variable\">$name<\/span><span class=\"cbb-string\">\"<\/span> <span class=\"cbb-string\">\"<\/span><span class=\"cbb-variable\">$name<\/span><span class=\"cbb-string\">.html\"<\/span> <span class=\"cbb-string\">\"<\/span><span class=\"cbb-variable\">$name<\/span><span class=\"cbb-string\">\/\"<\/span><span class=\"cbb-operator\">;<\/span> <span class=\"cbb-keyword\">do<\/span>\n<\/span><span class=\"cbb-line\">  <span class=\"cbb-function\">printf<\/span> <span class=\"cbb-string\">'\\n%s\\n'<\/span> <span class=\"cbb-string\">\"<\/span><span class=\"cbb-variable\">$path<\/span><span class=\"cbb-string\">\"<\/span>\n<\/span><span class=\"cbb-line\">  <span class=\"cbb-keyword\">if<\/span> ! <span class=\"cbb-function\">curl<\/span> <span class=\"cbb-attr\">--silent<\/span> <span class=\"cbb-attr\">--show-error<\/span> <span class=\"cbb-attr\">--connect-timeout<\/span> <span class=\"cbb-number\">5<\/span> <span class=\"cbb-attr\">--max-time<\/span> <span class=\"cbb-number\">15<\/span> \\\n<\/span><span class=\"cbb-line\">      <span class=\"cbb-attr\">--dump-header<\/span> - <span class=\"cbb-attr\">--output<\/span> \/dev\/null \\\n<\/span><span class=\"cbb-line\">      <span class=\"cbb-attr\">--write-out<\/span> <span class=\"cbb-string\">'HTTP %{http_code}; body bytes %{size_download}\\n'<\/span> \\\n<\/span><span class=\"cbb-line\">      <span class=\"cbb-string\">\"<\/span><span class=\"cbb-variable\">$base<\/span><span class=\"cbb-string\">\/<\/span><span class=\"cbb-variable\">$path<\/span><span class=\"cbb-string\">\"<\/span><span class=\"cbb-operator\">;<\/span> <span class=\"cbb-keyword\">then<\/span>\n<\/span><span class=\"cbb-line\">    <span class=\"cbb-function\">printf<\/span> <span class=\"cbb-string\">'Retrieval failed\\n'<\/span> <span class=\"cbb-operator\">&gt;<\/span>&amp;<span class=\"cbb-number\">2<\/span>\n<\/span><span class=\"cbb-line\">  <span class=\"cbb-keyword\">fi<\/span>\n<\/span><span class=\"cbb-line\"><span class=\"cbb-keyword\">done<\/span><\/span><\/code><\/pre><\/figure>\n<p>The <a href=\"https:\/\/www.lukaswojcik.com\/blog\/en\/toolbox\/soft-404-error-page-checker\/\">Soft 404 and Error Page Checker<\/a> adds size and vocabulary comparisons. The limitations described above remain relevant to its results.<\/p>\n<div class=\"lw-faq\"><h2>Questions and answers<\/h2><h3>Is every redirect of a random path an error?<\/h3><p>No. A host or language redirect can be normal. The destination, final status and content determine the interpretation. Redirecting everything to an unrelated front page does not reliably resolve a missing resource.<\/p><h3>What does a persistent 429 mean?<\/h3><p>Google handles 429 similarly to server errors and temporarily reduces crawling. Persistent errors can eventually cause affected URLs to leave the index. A single measurement proves neither that outcome nor a permanent restriction.<\/p><\/div>\n<div class=\"lw-quellen\"><h2>Sources<\/h2><ul><li><a href=\"https:\/\/www.rfc-editor.org\/rfc\/rfc9110.html#name-410-gone\" rel=\"noopener noreferrer\" target=\"_blank\">RFC 9110: HTTP Semantics<\/a><\/li><li><a href=\"https:\/\/developers.google.com\/crawling\/docs\/troubleshooting\/http-status-codes\" rel=\"noopener noreferrer\" target=\"_blank\">Google: HTTP status codes<\/a><\/li><li><a href=\"https:\/\/curl.se\/docs\/manpage.html\" rel=\"noopener noreferrer\" target=\"_blank\">curl manual<\/a><\/li><\/ul><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Sixty historical probes across twenty domains show different responses to random paths. The analysis distinguishes HTTP status, redirect destinations and the limits of soft-404 detection.<\/p>\n","protected":false},"author":1,"featured_media":31113,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[127],"tags":[91094,91219,92757],"class_list":["post-15789","post","type-post","status-publish","format-standard","hentry","category-tutorials-en-digital-marketing","tag-seo","tag-tutorial","tag-web-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Handling Missing Pages Correctly: Checking 404 Errors and Other Server Responses | Lukas Wojcik<\/title>\n<meta name=\"description\" content=\"What twenty front pages answer for an address that does not exist: 37 times 404, fourteen redirects, three 410s - and one measurement bug.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/tutorials-en-digital-marketing\/handling-missing-pages-correctly-checking-404-errors-and-other-server-responses\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Handling Missing Pages Correctly: Checking 404 Errors and Other Server Responses | Lukas Wojcik\" \/>\n<meta property=\"og:description\" content=\"What twenty front pages answer for an address that does not exist: 37 times 404, fourteen redirects, three 410s - and one measurement bug.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/tutorials-en-digital-marketing\/handling-missing-pages-correctly-checking-404-errors-and-other-server-responses\/\" \/>\n<meta property=\"og:site_name\" content=\"Lukas Wojcik - Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-16T06:50:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/11\/klarheit-20261111-15789.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Lukas Wojcik\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Lukas Wojcik\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/tutorials-en-digital-marketing\\\/handling-missing-pages-correctly-checking-404-errors-and-other-server-responses\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/tutorials-en-digital-marketing\\\/handling-missing-pages-correctly-checking-404-errors-and-other-server-responses\\\/\"},\"author\":{\"name\":\"Lukas Wojcik\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"headline\":\"Handling Missing Pages Correctly: Checking 404 Errors and Other Server Responses\",\"datePublished\":\"2026-11-16T06:50:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/tutorials-en-digital-marketing\\\/handling-missing-pages-correctly-checking-404-errors-and-other-server-responses\\\/\"},\"wordCount\":900,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"image\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/tutorials-en-digital-marketing\\\/handling-missing-pages-correctly-checking-404-errors-and-other-server-responses\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/klarheit-20261111-15789.png\",\"keywords\":[\"SEO\",\"Tutorial\",\"Web Development\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/tutorials-en-digital-marketing\\\/handling-missing-pages-correctly-checking-404-errors-and-other-server-responses\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/tutorials-en-digital-marketing\\\/handling-missing-pages-correctly-checking-404-errors-and-other-server-responses\\\/\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/tutorials-en-digital-marketing\\\/handling-missing-pages-correctly-checking-404-errors-and-other-server-responses\\\/\",\"name\":\"Handling Missing Pages Correctly: Checking 404 Errors and Other Server Responses | Lukas Wojcik\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/tutorials-en-digital-marketing\\\/handling-missing-pages-correctly-checking-404-errors-and-other-server-responses\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/tutorials-en-digital-marketing\\\/handling-missing-pages-correctly-checking-404-errors-and-other-server-responses\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/klarheit-20261111-15789.png\",\"datePublished\":\"2026-11-16T06:50:00+00:00\",\"description\":\"What twenty front pages answer for an address that does not exist: 37 times 404, fourteen redirects, three 410s - and one measurement bug.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/tutorials-en-digital-marketing\\\/handling-missing-pages-correctly-checking-404-errors-and-other-server-responses\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/tutorials-en-digital-marketing\\\/handling-missing-pages-correctly-checking-404-errors-and-other-server-responses\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/tutorials-en-digital-marketing\\\/handling-missing-pages-correctly-checking-404-errors-and-other-server-responses\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/klarheit-20261111-15789.png\",\"contentUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/klarheit-20261111-15789.png\",\"width\":1200,\"height\":630,\"caption\":\"Handling Missing Pages Correctly: Checking 404 Errors and Other Server Responses\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/tutorials-en-digital-marketing\\\/handling-missing-pages-correctly-checking-404-errors-and-other-server-responses\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Handling Missing Pages Correctly: Checking 404 Errors and Other Server Responses\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/\",\"name\":\"Lukas Wojcik - Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\",\"name\":\"Lukas Wojcik\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\",\"contentUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\",\"width\":424,\"height\":636,\"caption\":\"Lukas Wojcik\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\"},\"sameAs\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Handling Missing Pages Correctly: Checking 404 Errors and Other Server Responses | Lukas Wojcik","description":"What twenty front pages answer for an address that does not exist: 37 times 404, fourteen redirects, three 410s - and one measurement bug.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/tutorials-en-digital-marketing\/handling-missing-pages-correctly-checking-404-errors-and-other-server-responses\/","og_locale":"en_US","og_type":"article","og_title":"Handling Missing Pages Correctly: Checking 404 Errors and Other Server Responses | Lukas Wojcik","og_description":"What twenty front pages answer for an address that does not exist: 37 times 404, fourteen redirects, three 410s - and one measurement bug.","og_url":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/tutorials-en-digital-marketing\/handling-missing-pages-correctly-checking-404-errors-and-other-server-responses\/","og_site_name":"Lukas Wojcik - Blog","article_published_time":"2026-11-16T06:50:00+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/11\/klarheit-20261111-15789.png","type":"image\/png"}],"author":"Lukas Wojcik","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Lukas Wojcik","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/tutorials-en-digital-marketing\/handling-missing-pages-correctly-checking-404-errors-and-other-server-responses\/#article","isPartOf":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/tutorials-en-digital-marketing\/handling-missing-pages-correctly-checking-404-errors-and-other-server-responses\/"},"author":{"name":"Lukas Wojcik","@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"headline":"Handling Missing Pages Correctly: Checking 404 Errors and Other Server Responses","datePublished":"2026-11-16T06:50:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/tutorials-en-digital-marketing\/handling-missing-pages-correctly-checking-404-errors-and-other-server-responses\/"},"wordCount":900,"commentCount":0,"publisher":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"image":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/tutorials-en-digital-marketing\/handling-missing-pages-correctly-checking-404-errors-and-other-server-responses\/#primaryimage"},"thumbnailUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/11\/klarheit-20261111-15789.png","keywords":["SEO","Tutorial","Web Development"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/tutorials-en-digital-marketing\/handling-missing-pages-correctly-checking-404-errors-and-other-server-responses\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/tutorials-en-digital-marketing\/handling-missing-pages-correctly-checking-404-errors-and-other-server-responses\/","url":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/tutorials-en-digital-marketing\/handling-missing-pages-correctly-checking-404-errors-and-other-server-responses\/","name":"Handling Missing Pages Correctly: Checking 404 Errors and Other Server Responses | Lukas Wojcik","isPartOf":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/tutorials-en-digital-marketing\/handling-missing-pages-correctly-checking-404-errors-and-other-server-responses\/#primaryimage"},"image":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/tutorials-en-digital-marketing\/handling-missing-pages-correctly-checking-404-errors-and-other-server-responses\/#primaryimage"},"thumbnailUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/11\/klarheit-20261111-15789.png","datePublished":"2026-11-16T06:50:00+00:00","description":"What twenty front pages answer for an address that does not exist: 37 times 404, fourteen redirects, three 410s - and one measurement bug.","breadcrumb":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/tutorials-en-digital-marketing\/handling-missing-pages-correctly-checking-404-errors-and-other-server-responses\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/tutorials-en-digital-marketing\/handling-missing-pages-correctly-checking-404-errors-and-other-server-responses\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/tutorials-en-digital-marketing\/handling-missing-pages-correctly-checking-404-errors-and-other-server-responses\/#primaryimage","url":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/11\/klarheit-20261111-15789.png","contentUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/11\/klarheit-20261111-15789.png","width":1200,"height":630,"caption":"Handling Missing Pages Correctly: Checking 404 Errors and Other Server Responses"},{"@type":"BreadcrumbList","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/tutorials-en-digital-marketing\/handling-missing-pages-correctly-checking-404-errors-and-other-server-responses\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.lukaswojcik.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Handling Missing Pages Correctly: Checking 404 Errors and Other Server Responses"}]},{"@type":"WebSite","@id":"https:\/\/www.lukaswojcik.com\/blog\/#website","url":"https:\/\/www.lukaswojcik.com\/blog\/","name":"Lukas Wojcik - Blog","description":"","publisher":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.lukaswojcik.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9","name":"Lukas Wojcik","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg","url":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg","contentUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg","width":424,"height":636,"caption":"Lukas Wojcik"},"logo":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg"},"sameAs":["https:\/\/www.lukaswojcik.com\/blog"]}]}},"_links":{"self":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/15789","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/comments?post=15789"}],"version-history":[{"count":8,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/15789\/revisions"}],"predecessor-version":[{"id":33258,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/15789\/revisions\/33258"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/media\/31113"}],"wp:attachment":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/media?parent=15789"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/categories?post=15789"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/tags?post=15789"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}