Free auditStart free
GuideError · HTTP status codes

404 Not Found in IIS

Fix an IIS 404 Not Found: read the sub-status (404.0 to 404.20), then check the file, site binding, handler mapping, MIME type, request filtering and size limits.

4 min
read
9
sources
Oct 24, 2026
updated
Scaplet Editorial Team
author
The short answer

In IIS, a 404 Not Found carries a sub-status that separates a missing file (404.0) from a missing site (404.1), handler (404.4), MIME mapping (404.3) or a request filtering rule (such as 404.5, 404.14 or 404.19). Read the sub-status in the IIS log first, because many IIS 404s mean a rule blocked the request, not that the file is gone.

  1. Why IIS has so many kinds of 404
  2. Fixes that match the sub-status
  3. Verify the fix and watch the SEO side
30-second check

Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
01Explained

Why IIS has so many kinds of 404

RFC 9110 says a 404 means the origin server did not find a current representation for the target resource or is not willing to disclose that one exists. IIS uses both halves: a sub-status after the dot tells you whether the file is missing or a rule refused the request. The general meaning is on 404 Not Found. The same status on other servers is covered for Apache and nginx.

The sub-status is recorded in the IIS log as HttpSubStatus, one of the default log fields. The default log directory is %SystemDrive%\inetpub\logs\LogFiles. For a quick look at the details, request the page from the server itself: httpErrors defaults to errorMode="DetailedLocalOnly", so only local requests get the detailed error.

IIS 404 sub-status codes (from Microsoft's table)
Sub-statusMeaningWhat to check
404.0File or directory not found, moved or does not existThe path, spelling and virtual directory mapping
404.1Site not foundThat the requested website exists on this server
404.2ISAPI or CGI restrictionWhether the ISAPI or CGI resource is restricted on the server
404.3MIME type restrictionThe MIME mapping for the file extension is invalid or not set
404.4No handler configuredNo handler maps the file name extension of the URL
404.5Denied by request filtering configurationThe URL contains a blocked character sequence
404.6 / 404.7Verb denied / file extension deniedThe HTTP verb or extension is not allowed
404.8 / 404.9Hidden namespace / hidden file attributeA hidden segment or a file with the hidden attribute
404.10, 404.14, 404.15Header, URL or query string too longRequest limits for headers, maxUrl and maxQueryString
404.11 / 404.12Double escape sequence / high-bit charactersThe URL contains them and the server is set to refuse
404.13Content length too largemaxAllowedContentLength
404.17Dynamic content mapped to the static file handlerThe handler mapping for the file type
404.18 / 404.19 / 404.20Query string sequence denied / denied by filtering rule / too many URL segmentsThe request filtering rules and limits for the site
03How it works

Verify the fix and watch the SEO side

Google does not index URLs that return a 4xx status and removes indexed ones that start returning it; see 4xx errors.

  1. 01

    Find the entry

    Open the newest file in the log directory (by default %SystemDrive%\inetpub\logs\LogFiles) and read the status and sub-status for the URL.

  2. 02

    Change the matching setting

    Use the tables above, then repeat the request.

  3. 03

    Check for soft 404s

    If you added a custom 404 page, it must still send a 404 status code; see soft 404 errors.

Questions

Asked a lot.

4 questions people ask next, answered from the sources on this page.

01How do I fix 404 Not Found in IIS?

Read the sub-status in the IIS log. For 404.0, confirm the file exists in the right folder and virtual directory. For 404.1 to 404.20, fix the site, handler, MIME mapping or request filtering rule the sub-status points to.

02What does IIS 404.13 mean?

"Content length too large": the request's Content-Length header is larger than the server allows. The maxAllowedContentLength default is 30000000 bytes, about 28.6 MB.

03What does IIS 404.3 mean?

"MIME type restriction": the MIME mapping for the requested extension is invalid or not set. Add the extension to the MIME map for the site.

04Why does IIS return 404 when the file exists?

A rule can refuse the request with a 404 sub-status: request filtering, a hidden file or segment, a missing handler, a size limit or an IP deny rule that uses NotFound.

Sources · 9

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • rfc-editor.org
  • microsoft.com
  • google.com
  1. 01RFC 9110: HTTP Semanticsrfc-editor.org · checked 2026-10-25
  2. 02HTTP status codes in IIS 7.0 and later (Microsoft Learn)learn.microsoft.com · checked 2026-10-25
  3. 03Troubleshoot HTTP 404 File Not Found in IIS (Microsoft Learn)learn.microsoft.com · checked 2026-10-25
  4. 04IIS: Request Limits <requestLimits> (Microsoft Learn)learn.microsoft.com · checked 2026-10-25
  5. 05IIS: Request Filtering <requestFiltering> (Microsoft Learn)learn.microsoft.com · checked 2026-10-25
  6. 06IIS: HTTP Errors <httpErrors> (Microsoft Learn)learn.microsoft.com · checked 2026-10-25
  7. 07IIS: Site Log Files <logFile> (Microsoft Learn)learn.microsoft.com · checked 2026-10-25
  8. 08IIS: IP Security <ipSecurity> (Microsoft Learn)learn.microsoft.com · checked 2026-10-25
  9. 09How HTTP status codes affect Google's crawlersdevelopers.google.com · checked 2026-10-25
Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane