Workflow Tools Control Yard

Home / Logs

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.

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.

CodeNameNotes
100ContinueInitial 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.
101Switching protocolsServer understands and is willing to comply with client's request for a change in the application protocol being used.
200OKThe client request was successfully processed.
201CreatedThe client request has been fulfilled and has resulted in one or more new resources being created.
202AcceptedThe client request has been accepted for processing, but the processing hasn't been completed.
203Nonauthoritative informationThe client request was successful but the enclosed content has been modified from the response of the origin server.
204No contentThe server has successfully fulfilled the request and that there's no additional content to send in the response content.
205Reset contentThe 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.
206Partial contentThe server is successfully fulfilling a range request for the target resource by transferring one or more parts of the selected representation.
301Moved permanentlyThe target resource has been assigned a new permanent URI and any future references to this resource ought to use one of the enclosed URIs.
302Object movedThe 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
304Not modifiedA 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.
307Temporary redirectThe 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.
400Bad requestThe request couldn't be understood by the server due to malformed syntax. The client shouldn't repeat the request without modifications.
401Access deniedThe request hasn't been applied because it lacks valid authentication credentials for the target resource.
403ForbiddenThe server understood the request but refuses to fulfill it.
404Not foundThe origin server didn't find a current representation for the target resource or isn't willing to disclose that one exists.
405Method not allowedThe method received in the request-line is known by the origin server but not supported by the target resource.
406Not acceptableThe client browser doesn't accept the MIME type of the requested resource.
408Request timed outThe server didn't receive a complete request message within the time that it was prepared to wait.
412Precondition failedOne or more conditions given in the request header fields evaluated to false when tested on the server.
413Request entity too largeThe HTTP request payload is too large.
500Internal server errorThe server encountered an unexpected condition that prevented it from fulfilling the request.
501Header values specify a configuration that is not implementedThe server doesn't support the functionality required to fulfill the request.
502Web server received an invalid response while acting as a gateway or proxyThe server, while acting as a gateway or proxy, received an invalid response from an inbound server it accessed while attempting to fulfill the request.
503Service unavailableThe 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.

CodeNameNotesFrom
400.1Invalid Destination HeaderIIS
400.2Invalid Depth HeaderIIS
400.3Invalid If HeaderIIS
400.4Invalid Overwrite HeaderIIS
400.5Invalid Translate HeaderIIS
400.6Invalid Request BodyIIS
400.7Invalid Content LengthIIS
400.8Invalid TimeoutIIS
400.9Invalid Lock TokenIIS
400.10Invalid X-Forwarded-For (XFF) headerIIS 8.0 and later
400.11Invalid WebSocket requestIIS 8.0 and later
400.601Bad client request (ARR)ARR 3.0.1916
400.602Invalid time format (ARR)ARR 3.0.1916
400.603Parse range error (ARR)ARR 3.0.1916
400.604Client gone (ARR)ARR 3.0.1916
400.605Maximum number of forwards (ARR)ARR 3.0.1916
400.606Asynchronous competition error (ARR)ARR 3.0.1916
401.1Logon failedThe logon attempt is unsuccessful probably because of a user name or a password that is invalid.IIS
401.2Logon failed due to server configurationThis HTTP status code indicates a problem in the authentication configuration settings on the server.IIS
401.3Unauthorized due to ACL on resourceThis 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.4Authorization failed by filterAn Internet Server Application Programming Interface (ISAPI) filter doesn't let the request be processed because of an authorization problem.IIS
401.5Authorization failed by ISAPI/CGI applicationAn ISAPI application or a Common Gateway Interface (CGI) application doesn't let the request be processed because of an authorization problem.IIS
401.501Access denied: concurrent request rate limit reachedDynamic IP Restriction: too many concurrent requests were made from the same client IP.IIS
401.502Access denied: maximum request rate limit reachedDynamic IP Restriction: the maximum number of requests from the same client IP within a specified time limit was reached.IIS
401.503Access denied: IP address deniedIP Restriction: the client IP address is included in the deny list.IIS
401.504Access denied: host name deniedIP Restriction: the client host name is included in the deny list.IIS
403.1Execute access forbiddenThe appropriate level of the Execute permission isn't granted.IIS
403.2Read access forbiddenThe 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.3Write access forbiddenThe 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.4SSL requiredThe request is made over a non-secure channel. But the web application requires a Secure Sockets Layer (SSL) connection.IIS
403.5SSL 128 requiredThe server is configured to require a 128-bit SSL connection. But, the request isn't sent by using 128-bit encryption.IIS
403.6IP address rejectedThe server is configured to deny access to the current IP address.IIS
403.7Client certificate requiredThe 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.8Site access deniedThe server is configured to deny requests based on the Domain Name System (DNS) name of the client computer.IIS
403.9Concurrent connections exceededToo many clients are trying to connect to the web server.IIS
403.10Forbidden: Execute access deniedThe web server is configured to deny "Execute" access.IIS
403.11Forbidden: Password changedA password has been changed.IIS
403.12Mapper denied accessThe 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.13Client certificate revokedThe client browser tries to use a client certificate that was revoked by the issuing certification authority.IIS
403.14Directory listing deniedThe server isn't configured to display a content directory listing, and a default document isn't set.14.IIS
403.15Client access licenses exceededThe number of client access licenses has exceeded the limits on the web server.IIS
403.16Client certificate is untrusted or invalidThe 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.17Client certificate has expired or is not yet validThe client browser tries to use a client certificate that is expired or that isn't yet valid.IIS
403.18Cannot execute requested URL in the current application poolA 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.19Cannot execute CGI applications for the client browser in this application poolThe identity of the application pool doesn't have the Replace a process level token user right.IIS
403.20Forbidden: Passport logon failedClient requests using passport logon aren't allowed.IIS
403.21Forbidden: Source access deniedWebDAV requests to the source code of a resource aren't allowed.IIS
403.22Forbidden: Infinite depth is deniedWebDAV requests with an infinite depth aren't allowed.IIS
403.501Forbidden: concurrent request rate limit reachedDynamic IP Restriction: too many concurrent requests were made from the same client IP.IIS
403.502Forbidden: maximum request rate limit reachedDynamic IP Restriction: the maximum number of requests from the same client IP within a specified time limit was reached.IIS
403.503Forbidden: IP address deniedIP Restriction: the client IP address is included in the deny list.IIS
403.504Forbidden: host name deniedIP Restriction: the client host name is included in the deny list.IIS
404.0Not foundThe file that you try to access is moved or doesn't exist.IIS
404.1Site Not FoundThe requested website doesn't exist.IIS
404.2ISAPI or CGI restrictionThe requested ISAPI resource or the requested CGI resource is restricted on the computer.2.IIS
404.3MIME type restrictionThe current MIME mapping for the requested extension type is invalid or isn't configured.IIS
404.4No handler configuredThe 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.5Denied by request filtering configurationThe requested URL contains a character sequence that is blocked by the server.IIS
404.6Verb deniedThe request is made by using an HTTP verb that isn't configured or that isn't valid.IIS
404.7File extension deniedThe requested file name extension isn't allowed.IIS
404.8Hidden namespaceThe requested URL is denied because the directory is hidden.IIS
404.9Files attribute hiddenThe requested file is hidden.9 - Not Found.IIS
404.10Request header too longThe request is denied because the request headers are too long.IIS
404.11Request contains double escape sequenceThe request contains a double escape sequence.IIS
404.12Request contains high-bit charactersThe request contains high-bit characters, and the server is configured not to allow high-bit characters.IIS
404.13Content length too largeThe 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.14Request URL too longThe requested URL exceeds the limit that is allowed for the server.IIS
404.15Query string too longThe request contains a query string that is longer than the limit that is allowed for the server.IIS
404.16WebDAV request sent to the static file handlerA WebDAV request wasn't processed by a WebDAV feature and was sent to the static file handler.IIS
404.17Dynamic content mapped to the static file handler17 - Not Found.IIS
404.18Query string sequence deniedThe request contains a query string sequence that isn't allowed.IIS
404.19Denied by filtering ruleThe request was denied due to a Request Filtering rule.IIS
404.20Too Many URL SegmentsThe request contains too many URL segments.IIS
404.501Not found: concurrent request rate limit reachedDynamic IP Restriction: too many concurrent requests were made from the same client IP.IIS
404.502Not found: maximum request rate limit reachedDynamic IP Restriction: the maximum number of requests from the same client IP within a specified time limit was reached.IIS
404.503Not found: IP address deniedIP Restriction: the client IP address is included in the deny list.IIS
404.504Not found: host name deniedIP Restriction: the client host name is included in the deny list.IIS
405.0Method not allowedThe request is made by using an HTTP method that isn't valid.0.IIS
406.0Not acceptableThe request is made by using an Accept header that contains a MIME value that isn't valid.IIS
408.0Request timed outThe server didn't receive a complete request message within the time that it was prepared to wait.IIS
412.0Precondition failedThe request is made by using an If-Match request header that contains a value that isn't valid.IIS
413.0Request entity too largeThe request is made by using a payload that is too large.IIS
500.0Module or ISAPI error occurredThis HTTP status code may occur for many server-side reasons.0 - Internal Server Error.IIS
500.11Application is shutting down on the web serverThe 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.12Application is busy restarting on the web serverThe 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.13Web server is too busyThe 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.15Direct requests for Global.asax aren't allowedA direct request for the _Global.asa_ file or for the _Global.asax_ file is made.IIS
500.19Configuration data is invalidThis HTTP status code occurs because of a problem in the associated _applicationhost.config_ file or in the associated _Web.config_ file.19.IIS
500.21Module not recognizedIIS
500.22An ASP.NET httpModules configuration does not apply in Managed Pipeline modeIIS
500.23An ASP.NET httpHandlers configuration does not apply in Managed Pipeline modeIIS
500.24An ASP.NET impersonation configuration does not apply in Managed Pipeline modeIIS
500.50A rewrite error occurred during RQ_BEGIN_REQUEST notification handling. A configuration or inbound rule execution error occurredHere's where the distributed rules configuration is read for both inbound and outbound rules.IIS
500.51A rewrite error occurred during GL_PRE_BEGIN_REQUEST notification handling. A global configuration or global rule execution error occurredHere's where the global rules configuration is read.IIS
500.52A rewrite error occurred during RQ_SEND_RESPONSE notification handling. An outbound rule execution occurredIIS
500.53A 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 updatedIIS
500.100Internal ASP errorAn 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.1CGI application timeoutIIS
502.2Bad gateway: Premature ExitIIS
502.3Bad Gateway: Forwarder Connection Error (ARR)IIS
502.4Bad Gateway: No Server (ARR)IIS
502.2Map request failure (ARR)ARR 3.0.1916
502.3WinHTTP asynchronous completion failure (ARR)ARR 3.0.1916
502.4No server (ARR)ARR 3.0.1916
502.5WebSocket failure (ARR)ARR 3.0.1916
502.6Forwarded request failure (ARR)ARR 3.0.1916
502.7Execute request failure (ARR)ARR 3.0.1916
503.0Application pool unavailableThe 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.2Concurrent request limit exceededThe 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.3ASP.NET queue fullIIS
503.4FastCGI queue fullIIS

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.

FieldNameWhat it holds
dateDateThe date on which the activity occurred.
timeTimeThe time, in coordinated universal time (UTC), at which the activity occurred.
s-sitenameService Name and Instance NumberThe Internet service name and instance number that was running on the client.
s-computernameServer NameThe name of the server on which the log file entry was generated.
s-ipServer IP AddressThe IP address of the server on which the log file entry was generated.
cs-methodMethodThe requested verb, for example, a GET method.
cs-uri-stemURI StemThe target of the verb, for example, Default.htm.
cs-uri-queryURI QueryThe query, if any, that the client was trying to perform. A Universal Resource Identifier (URI) query is necessary only for dynamic pages.
s-portServer PortThe server port number that is configured for the service.
cs-usernameUser NameThe name of the authenticated user that accessed the server. Anonymous users are indicated by a hyphen.
c-ipClient IP AddressThe IP address of the client that made the request.
cs-versionProtocol VersionThe HTTP protocol version that the client used.
cs(User-Agent)User AgentThe browser type that the client used.
cs(Cookie)CookieThe content of the cookie sent or received, if any.
cs(Referrer)ReferrerThe site that the user last visited. This site provided a link to the current site.
cs-hostHostThe host header name, if any.
sc-statusHTTP StatusThe HTTP status code.
sc-substatusProtocol SubstatusThe substatus error code.
sc-win32-statusWin32 StatusThe Windows status code.
sc-bytesBytes SentThe number of bytes sent by the server.
cs-bytesBytes ReceivedThe number of bytes received and processed by the server.
time-takenTime TakenThe length of time that the action took, in milliseconds.
streamidStream IDThe Stream Id.

Sources

More Logs tools