Re:Web servers should refuse requests for random, unnecessar...
by toast0 on Thursday July 06, 2023 @05:14PM
(#36623162)
> The correct response code would be a 3XX or 4XX response code, depending on the client behavior that you want.
If the client behavior you want is to display your styled error page, that has historically meant returning a 200 status code, because some user-agents prefer their own error displays.
If the client behavior you want is to display your styled error page, that has historically meant returning a 200 status code, because some user-agents prefer their own error displays.