Re:If you're just going to sit there doing nothing, at least...
by nonethewiser on Friday February 16, 2024 @10:12PM
(#39405984)
> responds to all HTTP requests with 404 instead of letting it hang on an infinite loop or crash
How is a 404 equivalent to not throwing an error? 404 would be like throwing the error and then not handling the 404.
And the equivalent of hanging and crashing in the xbox example would be hanging and crashing.
If your choice is between playing whack-a-mole with all parts of the system which might call out, or just issuing a 404 (after all, if there's no Internet, you're not going to find a web page on it), that's a reasonable way to solve the problem.