You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/application-gateway/http-response-codes.md
+24-7Lines changed: 24 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,13 +5,13 @@ services: application-gateway
5
5
author: greg-lindsay
6
6
ms.service: application-gateway
7
7
ms.topic: troubleshooting
8
-
ms.date: 04/19/2022
8
+
ms.date: 04/04/2023
9
9
ms.author: greglin
10
10
---
11
11
12
12
# HTTP response codes in Application Gateway
13
13
14
-
This article lists some HTTP response codes that can be returned by Azure Application Gateway. Common causes and troubleshooting steps are provided to help you determine the root cause. HTTP response codes can be returned to a client request whether or not a connection was initiated to a backend target.
14
+
This article gives reasons on why Azure Application Gateway returns specific HTTP response codes. Common causes and troubleshooting steps are provided to help you determine the root cause of error HTTP Response code. HTTP response codes can be returned to a client request whether or not a connection was initiated to a backend target.
- Non-HTTP / HTTPS traffic is initiated to an application gateway with an HTTP or HTTPS listener.
45
45
- HTTP traffic is initiated to a listener with HTTPS, with no redirection configured.
46
46
- Mutual authentication is configured and unable to properly negotiate.
47
+
- The request is not compliant to RFC.
48
+
49
+
Some of the common reasons for the request to be non-compliant to RFC is listed.So review the urls/requests from the clients and ensure it's compliant to RFC.
50
+
51
+
| Category | Examples |
52
+
| ---------- | ---------- |
53
+
| Invalid Host in request line | Host containing two colons (example.com:**8090:8080**) |
| Invalid value in Content-Length | Content-Length: **abc**,Content-Length: **-10**|
62
+
63
+
47
64
48
65
For cases when mutual authentication is configured, several scenarios can lead to an HTTP 400 response being returned the client, such as:
49
66
- Client certificate isn't presented, but mutual authentication is enabled.
@@ -58,7 +75,7 @@ For more information about troubleshooting mutual authentication, see [Error cod
58
75
59
76
#### 403 – Forbidden
60
77
61
-
HTTP 403 Forbidden is presented when customers are utilizing WAF skus and have WAF configured in Prevention mode. If enabled WAF rulesets or custom deny WAF rules match the characteristics of an inbound request, the client will be presented a 403 forbidden response.
78
+
HTTP 403 Forbidden is presented when customers are utilizing WAF skus and have WAF configured in Prevention mode. If enabled WAF rulesets or custom deny WAF rules match the characteristics of an inbound request, the client is presented a 403 forbidden response.
62
79
63
80
#### 404 – Page not found
64
81
@@ -69,11 +86,11 @@ An HTTP 404 response can be returned if a request is sent to an application gate
69
86
70
87
#### 408 – Request Timeout
71
88
72
-
An HTTP 408 response can be observed when client requests to the frontend listener of application gateway do not respond back within 60 seconds. This error can be observed due to traffic congestion between on-premises networks and Azure, when traffic is inspected by virtual appliances, or the client itself becomes overwhelmed.
89
+
An HTTP 408 response can be observed when client requests to the frontend listener of application gateway don't respond back within 60 seconds. This error can be observed due to traffic congestion between on-premises networks and Azure, when virtual appliance inspects the traffic traffic, or the client itself becomes overwhelmed.
73
90
74
91
#### 499 – Client closed the connection
75
92
76
-
An HTTP 499 response is presented if a client request that is sent to application gateways using v2 sku is closed before the server finished responding. This error can be observed when a large response is returned to the client, but the client may have closed or refreshed their browser/application before the server had a chance to finish responding. In application gateways using v1 sku, an HTTP 0 response code may be raised for the client closing the connection before the server has finished responding as well.
93
+
An HTTP 499 response is presented if a client request that is sent to application gateways using v2 sku is closed before the server finished responding. This error can be observed in 2 scenarios. First scenario is when a large response is returned to the client and the client may have closed or refreshed their application before the server finished sending the large response. Second scenario is the timeout on the client side is low and does not wait long enough to receive the response from server. In this case it is better to increase the timeout on the client. In application gateways using v1 sku, an HTTP 0 response code may be raised for the client closing the connection before the server has finished responding as well.
77
94
78
95
79
96
## 5XX response codes (server error)
@@ -82,7 +99,7 @@ An HTTP 499 response is presented if a client request that is sent to applicatio
82
99
83
100
#### 500 – Internal Server Error
84
101
85
-
Azure Application Gateway shouldn't exhibit 500 response codes. Please open a support request if you see this code, because this issue is an internal error to the service. For information on how to open a support case, see [Create an Azure support request](../azure-portal/supportability/how-to-create-azure-support-request.md).
102
+
Azure Application Gateway shouldn't exhibit 500 response codes. Open a support request if you see this code, because this issue is an internal error to the service. For information on how to open a support case, see [Create an Azure support request](../azure-portal/supportability/how-to-create-azure-support-request.md).
86
103
87
104
#### 502 – Bad Gateway
88
105
@@ -98,7 +115,7 @@ For information about scenarios where 502 errors occur, and how to troubleshoot
98
115
99
116
#### 504 – Gateway timeout
100
117
101
-
HTTP 504 errors are presented if a request is sent to application gateways using v2 sku, and the backend response time exceeds the time-out value configured in the Backend Setting.
118
+
Azure application Gateway V2 SKU sent HTTP 504 errors if the backend response time exceeds the time-out value which is configured in the Backend Setting.
0 commit comments