IIS status codes and log line reader
Type a status code with its substatus, such as 500.19, 403.14 or 404.3, or paste lines from an IIS log together with their #Fields line. The page names the status and substatus from Microsoft's list, shows the fields of each line, and links the Win32 status to the Windows error code lookup. It reads the text in your browser.
| Line | Time | Request | Status | Win32 status | ms |
|---|
Status codes
The first digit gives the class: 1xx informational, 2xx success, 3xx redirection, 4xx client error, 5xx server error. Microsoft's list covers the common codes, not every one: a custom ISAPI filter or HTTP module can set a code of its own.
| Code | Name | Notes |
|---|---|---|
| 100 | Continue | Initial part of the request has been received and hasn't yet been rejected by the server. The server intends to send a final response after the request has been fully received and acted upon. |
| 101 | Switching protocols | Server understands and is willing to comply with client's request for a change in the application protocol being used. |
| 200 | OK | The client request was successfully processed. |
| 201 | Created | The client request has been fulfilled and has resulted in one or more new resources being created. |
| 202 | Accepted | The client request has been accepted for processing, but the processing hasn't been completed. |
| 203 | Nonauthoritative information | The client request was successful but the enclosed content has been modified from the response of the origin server. |
| 204 | No content | The server has successfully fulfilled the request and that there's no additional content to send in the response content. |
| 205 | Reset content | The server has fulfilled the request and expects the user agent to reset the "document view," which caused the request to be sent, to its original state as received from the origin server. |
| 206 | Partial content | The server is successfully fulfilling a range request for the target resource by transferring one or more parts of the selected representation. |
| 301 | Moved permanently | The target resource has been assigned a new permanent URI and any future references to this resource ought to use one of the enclosed URIs. |
| 302 | Object moved | The target resource resides temporarily under a different URI. Since the redirection might be altered on occasion, the client ought to continue to use the target URI for future requests |
| 304 | Not modified | A conditional GET or HEAD request has been received and would have resulted in a 200 (OK) response if it weren't for the fact that the condition evaluated to false. |
| 307 | Temporary redirect | The client browser requests a document that is already in the cache. And the document hasn't been modified since it was cached. The client browser uses the cached copy of the document instead of downloading the document from the server. |
| 400 | Bad request | The request couldn't be understood by the server due to malformed syntax. The client shouldn't repeat the request without modifications. |
| 401 | Access denied | The request hasn't been applied because it lacks valid authentication credentials for the target resource. |
| 403 | Forbidden | The server understood the request but refuses to fulfill it. |
| 404 | Not found | The origin server didn't find a current representation for the target resource or isn't willing to disclose that one exists. |
| 405 | Method not allowed | The method received in the request-line is known by the origin server but not supported by the target resource. |
| 406 | Not acceptable | The client browser doesn't accept the MIME type of the requested resource. |
| 408 | Request timed out | The server didn't receive a complete request message within the time that it was prepared to wait. |
| 412 | Precondition failed | One or more conditions given in the request header fields evaluated to false when tested on the server. |
| 413 | Request entity too large | The HTTP request payload is too large. |
| 500 | Internal server error | The server encountered an unexpected condition that prevented it from fulfilling the request. |
| 501 | Header values specify a configuration that is not implemented | The server doesn't support the functionality required to fulfill the request. |
| 502 | Web server received an invalid response while acting as a gateway or proxy | The server, while acting as a gateway or proxy, received an invalid response from an inbound server it accessed while attempting to fulfill the request. |
| 503 | Service unavailable | The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, which will likely be alleviated after some delay. |
Substatus codes
IIS adds a substatus to 400, 401, 403, 404, 405, 406, 408, 412, 413, 500, 502 and 503 to give the cause. In the log it is the field sc-substatus. Microsoft's list says the 401 substatus codes show in the browser but not in the IIS log. Codes 502.2 to 502.4 appear twice in it, with different names: the second set came with Application Request Routing (ARR) 3.0.1916.
| Code | Name | Notes | From |
|---|---|---|---|
| 400.1 | Invalid Destination Header | IIS | |
| 400.2 | Invalid Depth Header | IIS | |
| 400.3 | Invalid If Header | IIS | |
| 400.4 | Invalid Overwrite Header | IIS | |
| 400.5 | Invalid Translate Header | IIS | |
| 400.6 | Invalid Request Body | IIS | |
| 400.7 | Invalid Content Length | IIS | |
| 400.8 | Invalid Timeout | IIS | |
| 400.9 | Invalid Lock Token | IIS | |
| 400.10 | Invalid X-Forwarded-For (XFF) header | IIS 8.0 and later | |
| 400.11 | Invalid WebSocket request | IIS 8.0 and later | |
| 400.601 | Bad client request (ARR) | ARR 3.0.1916 | |
| 400.602 | Invalid time format (ARR) | ARR 3.0.1916 | |
| 400.603 | Parse range error (ARR) | ARR 3.0.1916 | |
| 400.604 | Client gone (ARR) | ARR 3.0.1916 | |
| 400.605 | Maximum number of forwards (ARR) | ARR 3.0.1916 | |
| 400.606 | Asynchronous competition error (ARR) | ARR 3.0.1916 | |
| 401.1 | Logon failed | The logon attempt is unsuccessful probably because of a user name or a password that is invalid. | IIS |
| 401.2 | Logon failed due to server configuration | This HTTP status code indicates a problem in the authentication configuration settings on the server. | IIS |
| 401.3 | Unauthorized due to ACL on resource | This HTTP status code indicates a problem in the NTFS file system permissions. This problem might occur even if the permissions are correct for the file that you try to access. For example, this problem occurs if the IUSR account doesn't have access to the _C:\Winnt\System32\Inetsrv_ directory. | IIS |
| 401.4 | Authorization failed by filter | An Internet Server Application Programming Interface (ISAPI) filter doesn't let the request be processed because of an authorization problem. | IIS |
| 401.5 | Authorization failed by ISAPI/CGI application | An ISAPI application or a Common Gateway Interface (CGI) application doesn't let the request be processed because of an authorization problem. | IIS |
| 401.501 | Access denied: concurrent request rate limit reached | Dynamic IP Restriction: too many concurrent requests were made from the same client IP. | IIS |
| 401.502 | Access denied: maximum request rate limit reached | Dynamic IP Restriction: the maximum number of requests from the same client IP within a specified time limit was reached. | IIS |
| 401.503 | Access denied: IP address denied | IP Restriction: the client IP address is included in the deny list. | IIS |
| 401.504 | Access denied: host name denied | IP Restriction: the client host name is included in the deny list. | IIS |
| 403.1 | Execute access forbidden | The appropriate level of the Execute permission isn't granted. | IIS |
| 403.2 | Read access forbidden | The appropriate level of the Read permission isn't granted. Verify that you have set up IIS to grant the Read permission to the directory. Additionally, if you use a default document, verify that the default document exists. | IIS |
| 403.3 | Write access forbidden | The appropriate level of the Write permission isn't granted. Check the IIS permissions and the NTFS file system permissions. Make sure that they're set up to grant the "Write" permission to the directory. | IIS |
| 403.4 | SSL required | The request is made over a non-secure channel. But the web application requires a Secure Sockets Layer (SSL) connection. | IIS |
| 403.5 | SSL 128 required | The server is configured to require a 128-bit SSL connection. But, the request isn't sent by using 128-bit encryption. | IIS |
| 403.6 | IP address rejected | The server is configured to deny access to the current IP address. | IIS |
| 403.7 | Client certificate required | The server is configured to require a certificate for client authentication. But the client browser doesn't have an appropriate client certificate installed.7. | IIS |
| 403.8 | Site access denied | The server is configured to deny requests based on the Domain Name System (DNS) name of the client computer. | IIS |
| 403.9 | Concurrent connections exceeded | Too many clients are trying to connect to the web server. | IIS |
| 403.10 | Forbidden: Execute access denied | The web server is configured to deny "Execute" access. | IIS |
| 403.11 | Forbidden: Password changed | A password has been changed. | IIS |
| 403.12 | Mapper denied access | The page that you want to access requires a client certificate. But, the user ID that is mapped to the client certificate is denied access to the file. | IIS |
| 403.13 | Client certificate revoked | The client browser tries to use a client certificate that was revoked by the issuing certification authority. | IIS |
| 403.14 | Directory listing denied | The server isn't configured to display a content directory listing, and a default document isn't set.14. | IIS |
| 403.15 | Client access licenses exceeded | The number of client access licenses has exceeded the limits on the web server. | IIS |
| 403.16 | Client certificate is untrusted or invalid | The client browser tries to use an invalid client certificate. Or the server that is running IIS doesn't trust the client certificate.16. | IIS |
| 403.17 | Client certificate has expired or is not yet valid | The client browser tries to use a client certificate that is expired or that isn't yet valid. | IIS |
| 403.18 | Cannot execute requested URL in the current application pool | A custom error page is configured. And the application pool of the customer error page is different with the application pool of the requested URL. | IIS |
| 403.19 | Cannot execute CGI applications for the client browser in this application pool | The identity of the application pool doesn't have the Replace a process level token user right. | IIS |
| 403.20 | Forbidden: Passport logon failed | Client requests using passport logon aren't allowed. | IIS |
| 403.21 | Forbidden: Source access denied | WebDAV requests to the source code of a resource aren't allowed. | IIS |
| 403.22 | Forbidden: Infinite depth is denied | WebDAV requests with an infinite depth aren't allowed. | IIS |
| 403.501 | Forbidden: concurrent request rate limit reached | Dynamic IP Restriction: too many concurrent requests were made from the same client IP. | IIS |
| 403.502 | Forbidden: maximum request rate limit reached | Dynamic IP Restriction: the maximum number of requests from the same client IP within a specified time limit was reached. | IIS |
| 403.503 | Forbidden: IP address denied | IP Restriction: the client IP address is included in the deny list. | IIS |
| 403.504 | Forbidden: host name denied | IP Restriction: the client host name is included in the deny list. | IIS |
| 404.0 | Not found | The file that you try to access is moved or doesn't exist. | IIS |
| 404.1 | Site Not Found | The requested website doesn't exist. | IIS |
| 404.2 | ISAPI or CGI restriction | The requested ISAPI resource or the requested CGI resource is restricted on the computer.2. | IIS |
| 404.3 | MIME type restriction | The current MIME mapping for the requested extension type is invalid or isn't configured. | IIS |
| 404.4 | No handler configured | The file name extension of the requested URL doesn't have a handler that is configured to process the request on the Web server. | IIS |
| 404.5 | Denied by request filtering configuration | The requested URL contains a character sequence that is blocked by the server. | IIS |
| 404.6 | Verb denied | The request is made by using an HTTP verb that isn't configured or that isn't valid. | IIS |
| 404.7 | File extension denied | The requested file name extension isn't allowed. | IIS |
| 404.8 | Hidden namespace | The requested URL is denied because the directory is hidden. | IIS |
| 404.9 | Files attribute hidden | The requested file is hidden.9 - Not Found. | IIS |
| 404.10 | Request header too long | The request is denied because the request headers are too long. | IIS |
| 404.11 | Request contains double escape sequence | The request contains a double escape sequence. | IIS |
| 404.12 | Request contains high-bit characters | The request contains high-bit characters, and the server is configured not to allow high-bit characters. | IIS |
| 404.13 | Content length too large | The request contains a Content-Length header. The value of the Content-Length header is larger than the limit that is allowed for the server.13 - CONTENT_LENGTH_TOO_LARGE. | IIS |
| 404.14 | Request URL too long | The requested URL exceeds the limit that is allowed for the server. | IIS |
| 404.15 | Query string too long | The request contains a query string that is longer than the limit that is allowed for the server. | IIS |
| 404.16 | WebDAV request sent to the static file handler | A WebDAV request wasn't processed by a WebDAV feature and was sent to the static file handler. | IIS |
| 404.17 | Dynamic content mapped to the static file handler | 17 - Not Found. | IIS |
| 404.18 | Query string sequence denied | The request contains a query string sequence that isn't allowed. | IIS |
| 404.19 | Denied by filtering rule | The request was denied due to a Request Filtering rule. | IIS |
| 404.20 | Too Many URL Segments | The request contains too many URL segments. | IIS |
| 404.501 | Not found: concurrent request rate limit reached | Dynamic IP Restriction: too many concurrent requests were made from the same client IP. | IIS |
| 404.502 | Not found: maximum request rate limit reached | Dynamic IP Restriction: the maximum number of requests from the same client IP within a specified time limit was reached. | IIS |
| 404.503 | Not found: IP address denied | IP Restriction: the client IP address is included in the deny list. | IIS |
| 404.504 | Not found: host name denied | IP Restriction: the client host name is included in the deny list. | IIS |
| 405.0 | Method not allowed | The request is made by using an HTTP method that isn't valid.0. | IIS |
| 406.0 | Not acceptable | The request is made by using an Accept header that contains a MIME value that isn't valid. | IIS |
| 408.0 | Request timed out | The server didn't receive a complete request message within the time that it was prepared to wait. | IIS |
| 412.0 | Precondition failed | The request is made by using an If-Match request header that contains a value that isn't valid. | IIS |
| 413.0 | Request entity too large | The request is made by using a payload that is too large. | IIS |
| 500.0 | Module or ISAPI error occurred | This HTTP status code may occur for many server-side reasons.0 - Internal Server Error. | IIS |
| 500.11 | Application is shutting down on the web server | The request isn't processed because the destination application pool is shutting down. Wait for the worker process to finish shutting down, and then try the request again. If this problem persists, the web application may be experiencing problems that prevent the web application from shutting down correctly. | IIS |
| 500.12 | Application is busy restarting on the web server | The request isn't processed because the destination application pool is restarting. This HTTP status code should disappear when you refresh the page. If this HTTP status code appears again after you refresh the page, the problem may be caused by antivirus software that is scanning the Global.asa file. If this problem persists, the web application may be experiencing problems that prevent the web application from restarting correctly. | IIS |
| 500.13 | Web server is too busy | The request isn't processed because the server is too busy to accept any new incoming requests. Typically, this HTTP status code means that the number of incoming concurrent requests exceeds the number that the IIS web application can process. This problem may occur when the performance configuration settings are set too low, the hardware is insufficient, or a bottleneck occurs in the IIS web application. A common troubleshooting method is to generate a memory dump file of the IIS processes when the error is occurring and then to debug the memory dump file. | IIS |
| 500.15 | Direct requests for Global.asax aren't allowed | A direct request for the _Global.asa_ file or for the _Global.asax_ file is made. | IIS |
| 500.19 | Configuration data is invalid | This HTTP status code occurs because of a problem in the associated _applicationhost.config_ file or in the associated _Web.config_ file.19. | IIS |
| 500.21 | Module not recognized | IIS | |
| 500.22 | An ASP.NET httpModules configuration does not apply in Managed Pipeline mode | IIS | |
| 500.23 | An ASP.NET httpHandlers configuration does not apply in Managed Pipeline mode | IIS | |
| 500.24 | An ASP.NET impersonation configuration does not apply in Managed Pipeline mode | IIS | |
| 500.50 | A rewrite error occurred during RQ_BEGIN_REQUEST notification handling. A configuration or inbound rule execution error occurred | Here's where the distributed rules configuration is read for both inbound and outbound rules. | IIS |
| 500.51 | A rewrite error occurred during GL_PRE_BEGIN_REQUEST notification handling. A global configuration or global rule execution error occurred | Here's where the global rules configuration is read. | IIS |
| 500.52 | A rewrite error occurred during RQ_SEND_RESPONSE notification handling. An outbound rule execution occurred | IIS | |
| 500.53 | A rewrite error occurred during RQ_RELEASE_REQUEST_STATE notification handling. An outbound rule execution error occurred. The rule is configured to be executed before the output user cache gets updated | IIS | |
| 500.100 | Internal ASP error | An error occurs during the processing of an Active Server Pages (ASP) page. To obtain more specific information about the error, disable friendly HTTP error messages in the web browser. Additionally, the IIS log may show an ASP error number that corresponds to the error that occurs. | IIS |
| 502.1 | CGI application timeout | IIS | |
| 502.2 | Bad gateway: Premature Exit | IIS | |
| 502.3 | Bad Gateway: Forwarder Connection Error (ARR) | IIS | |
| 502.4 | Bad Gateway: No Server (ARR) | IIS | |
| 502.2 | Map request failure (ARR) | ARR 3.0.1916 | |
| 502.3 | WinHTTP asynchronous completion failure (ARR) | ARR 3.0.1916 | |
| 502.4 | No server (ARR) | ARR 3.0.1916 | |
| 502.5 | WebSocket failure (ARR) | ARR 3.0.1916 | |
| 502.6 | Forwarded request failure (ARR) | ARR 3.0.1916 | |
| 502.7 | Execute request failure (ARR) | ARR 3.0.1916 | |
| 503.0 | Application pool unavailable | The request is sent to an application pool that is currently stopped or disabled. To resolve this issue, make sure that the destination application pool is started. The event log may give information about why the application pool is stopped or disabled. | IIS |
| 503.2 | Concurrent request limit exceeded | The appConcurrentRequestLimit property is set to a value that is lower than the current number of concurrent requests. IIS doesn't allow more concurrent requests than the value of the appConcurrentRequestLimit property. | IIS |
| 503.3 | ASP.NET queue full | IIS | |
| 503.4 | FastCGI queue full | IIS |
Log fields
The W3C extended format is the default log format of IIS, and HTTP.sys writes it. By default the logs are in inetpub\logs\Logfiles, one folder per site and one file per day named like exYYMMDD.log. The #Fields line names the fields of the lines after it, in order, separated by spaces. A field with no value shows a hyphen, and a character that cannot be printed is replaced with a plus sign. The time is in UTC, and time-taken counts milliseconds from the first byte of the request to the last byte sent, not the time across the network. In the field names, s stands for server, c for client, cs for client to server and sc for server to client.
| Field | Name | What it holds |
|---|---|---|
date | Date | The date on which the activity occurred. |
time | Time | The time, in coordinated universal time (UTC), at which the activity occurred. |
s-sitename | Service Name and Instance Number | The Internet service name and instance number that was running on the client. |
s-computername | Server Name | The name of the server on which the log file entry was generated. |
s-ip | Server IP Address | The IP address of the server on which the log file entry was generated. |
cs-method | Method | The requested verb, for example, a GET method. |
cs-uri-stem | URI Stem | The target of the verb, for example, Default.htm. |
cs-uri-query | URI Query | The query, if any, that the client was trying to perform. A Universal Resource Identifier (URI) query is necessary only for dynamic pages. |
s-port | Server Port | The server port number that is configured for the service. |
cs-username | User Name | The name of the authenticated user that accessed the server. Anonymous users are indicated by a hyphen. |
c-ip | Client IP Address | The IP address of the client that made the request. |
cs-version | Protocol Version | The HTTP protocol version that the client used. |
cs(User-Agent) | User Agent | The browser type that the client used. |
cs(Cookie) | Cookie | The content of the cookie sent or received, if any. |
cs(Referrer) | Referrer | The site that the user last visited. This site provided a link to the current site. |
cs-host | Host | The host header name, if any. |
sc-status | HTTP Status | The HTTP status code. |
sc-substatus | Protocol Substatus | The substatus error code. |
sc-win32-status | Win32 Status | The Windows status code. |
sc-bytes | Bytes Sent | The number of bytes sent by the server. |
cs-bytes | Bytes Received | The number of bytes received and processed by the server. |
time-taken | Time Taken | The length of time that the action took, in milliseconds. |
streamid | Stream ID | The Stream Id. |
Sources
- Status and substatus codes, and the log folder: Microsoft's HTTP status codes in IIS (SupportArticles-docs at commit 667f0bf).
- Log fields and their prefixes: Microsoft's W3C Logging page for the HTTP Server API (win32 documentation at commit bc82a65). The default format: Microsoft's W3C Extended Log File Format page for IIS in Windows Server 2003.
- Microsoft's documentation is used under the Creative Commons Attribution 4.0 International licence (creativecommons.org/
licenses/ by/ 4.0/). The names and texts in the tables are Microsoft's; the meanings around them are written here in plain words.
More Logs tools
-
Access log checker
Find the exploit requests in a web server log and the addresses that sent them.
-
Windows security event ID lookup
Look up 4740, 4625, 4728, 1102 or any other Security log event: its meaning, audit setting and criticality.
-
Event log query builder
Pick a log, event IDs, levels and a time span: the XPath, the custom view XML and the Get-WinEvent command.
-
auditpol command builder
Choose what each audit subcategory logs, or start from Microsoft's baseline: the auditpol commands, with GUIDs.
-
Sysmon event ID lookup
Every Sysmon event ID with its filter tag and fields, and a reader for an event pasted from Event Viewer.
-
Windows Firewall log reader
Open pfirewall.log: its lines as a table, the drops by port and address, and the commands that turn logging on.
-
Schannel and TLS alert code lookup
Read Schannel events 36887 and 36888 and TLS alerts such as 40, 46, 48 and 70.
-
Syslog PRI calculator
Read the facility and severity in a syslog priority such as <134>, or build one from local0 to local7.
-
Timestamp converter
Unix seconds and milliseconds, FILETIME, Chrome, Apple, Excel and MS-DOS dates to a date, and back.
-
Scanner watch
What attack tools ask of this site's web server: the addresses, the paths and the networks, rebuilt each day.