Skip to content

Commit b7ecc51

Browse files
authored
Added HTTP 4xx reasons
1 parent 4e965a2 commit b7ecc51

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

articles/application-gateway/http-response-codes.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services: application-gateway
55
author: greg-lindsay
66
ms.service: application-gateway
77
ms.topic: troubleshooting
8-
ms.date: 04/19/2022
8+
ms.date: 04/04/2023
99
ms.author: greglin
1010
ms.custom: devx-track-azurepowershell
1111
---
@@ -45,6 +45,22 @@ HTTP 400 response codes are commonly observed when:
4545
- Non-HTTP / HTTPS traffic is initiated to an application gateway with an HTTP or HTTPS listener.
4646
- HTTP traffic is initiated to a listener with HTTPS, with no redirection configured.
4747
- Mutual authentication is configured and unable to properly negotiate.
48+
- Not compliant to RFC.
49+
50+
Below are the common reasons for the request to be non-compliant to RFC. So please review the urls/requests from the clients for the below patterns.
51+
| Subcategory | Examples |
52+
| ---------- | ---------- |
53+
| Invalid Host in request line | Host containing two colons ( example.com:8090:8080) |
54+
| Missing Host Header | Request does not have Host Header |
55+
| Presence of malformed or illegal character | Reserved characters are &, !. Workaround is to percent code it %& |
56+
| Invalid HTTP version | Get /content.css HTTP/0.3 |
57+
| Header field name and URI contains non-ASCII Character | GET /«úü¡»¿.doc HTTP/1.1 |
58+
| Missing Content Length header for POST request | NA |
59+
| Invalid HTTP Method | GET123 / HTTP/1.1 |
60+
| Duplicate Headers | Authorization : <based64 encoded content> , Authorization : <based64 encoded content> |
61+
| Invalid value in Content-Length | Content-Length : abc |
62+
63+
4864

4965
For cases when mutual authentication is configured, several scenarios can lead to an HTTP 400 response being returned the client, such as:
5066
- Client certificate isn't presented, but mutual authentication is enabled.

0 commit comments

Comments
 (0)