Skip to content

Commit f612b6c

Browse files
authored
Revert "Redirect HTTP 400 to a specific error page instead of default for 500" (#6656)
This reverts commit 64f5a36.
1 parent 73a5c54 commit f612b6c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/NuGetGallery/Web.config

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,6 @@
322322
<customErrors mode="RemoteOnly" defaultRedirect="~/Errors/500" redirectMode="ResponseRedirect">
323323
<!-- Adding ? at the end of the redirect URL prevents the illegal request to be passed
324324
as a query parameter to the redirect URL and causing additional failures -->
325-
<error statusCode="400" redirect="~/Errors/400"/>
326325
<error statusCode="404" redirect="~/Errors/404"/>
327326
<error statusCode="500" redirect="~/Errors/500"/>
328327
</customErrors>
@@ -367,10 +366,8 @@
367366
</modules>
368367
<validation validateIntegratedModeConfiguration="false"/>
369368
<httpErrors errorMode="DetailedLocalOnly">
370-
<remove statusCode="400"/>
371369
<remove statusCode="404"/>
372370
<remove statusCode="500"/>
373-
<error statusCode="400" path="/Errors/400" responseMode="ExecuteURL"/>
374371
<error statusCode="404" path="/Errors/404" responseMode="ExecuteURL"/>
375372
<error statusCode="500" path="/Errors/500" responseMode="ExecuteURL"/>
376373
</httpErrors>

0 commit comments

Comments
 (0)