3 ms·
If your parser can't handle in-spec error codes, then that's a parser problem.
by cl0ckt0wer 2y ago
If your parser can't handle in-spec error codes, then that's a parser problem.
- declan_roberts 2y agoRegardless of the parser if you're using a 4XX status code when you should be using a 5XX status code then you're simply doing it wrong.
- justin66 2y agoHonestly this discussion makes the occasional "I'm a teapot" seem useful. Your log and error handling ought to be capable of handling occurrences of a programmer doing something goofy.
- Towaway69 2y agoWhy would being a teapot justify being a 5xx status? The server hasn’t failed, it’s a functioning teapot, definitely not broken. I would assume if the teapot were to be broken, then a 518 teacup is empty error would be more appropriate. But as long as there is a piping hot cup of tea, then it’s a 418 code. /s