Skip to content

Commit 02f43e0

Browse files
authored
Update error code to 404
1 parent 64d2175 commit 02f43e0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

articles/frontdoor/front-door-route-matching.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ This section focuses on how Front Door matches to a routing rule. The basic conc
5757
Azure Front Door uses the following logic to match frontend hosts:
5858

5959
1. Determine if there are any routes with an exact match on the frontend host.
60-
2. If there are no exact frontend hosts match, the request get rejected and a 400: Bad Request error gets sent.
60+
2. If there are no exact frontend hosts match, the request get rejected and a 404: Bad Request error gets sent.
6161

6262
The following tables show three different routing rules with frontend host and paths:
6363

@@ -73,19 +73,19 @@ The following table shows the matching results for the above routing rules:
7373
|--|--|
7474
| foo.contoso.com | A, B |
7575
| www\.fabrikam.com | C |
76-
| images.fabrikam.com | Error 400: Bad Request |
76+
| images.fabrikam.com | Error 404: Bad Request |
7777
| foo.adventure-works.com | C |
78-
| contoso.com | Error 400: Bad Request |
79-
| www\.adventure-works.com | Error 400: Bad Request |
80-
| www\.northwindtraders.com | Error 400: Bad Request |
78+
| contoso.com | Error 404: Bad Request |
79+
| www\.adventure-works.com | Error 404: Bad Request |
80+
| www\.northwindtraders.com | Error 404: Bad Request |
8181

8282
### Path matching
8383

8484
After Front Door determines the specific frontend host and filters for possible routing rules, Front Door then selects the routing rules based on the request path. A similar logic to frontend hosts is used to match the request path:
8585

8686
1. Determine if there are any routing rules with an exact match to the request path.
8787
1. If there isn't an exact matching path, then Front Door looks for a routing rule with a wildcard path that matches.
88-
1. If there are no routing rules found with a matching path, then request gets rejected and a 400: Bad Request error gets set sent.
88+
1. If there are no routing rules found with a matching path, then request gets rejected and a 404: Bad Request error gets set sent.
8989

9090
::: zone pivot="front-door-standard-premium"
9191

@@ -147,7 +147,7 @@ The following table shows which routing rule the incoming request gets matched t
147147
>
148148
> | Incoming request | Matched Route |
149149
> |------------------------|---------------|
150-
> | profile.domain.com/other | None. Error 400: Bad Request |
150+
> | profile.domain.com/other | None. Error 404: Bad Request |
151151
152152
### Routing decision
153153

0 commit comments

Comments
 (0)