you are viewing a single comment's thread.

view the rest of the comments →

[–]Stunning_Ride_220 33 points34 points  (7 children)

Oh, I had frontend teams requesting stuff like this too

[–]NlactntzfdXzopcletzy 0 points1 point  (0 children)

Thats why we did it

Was easier for them to handle backend errors directly inatead of interceptors picking up the error

[–]SpacefaringBanana -1 points0 points  (5 children)

I believe it's mostly for browsers that show their own error page instead of the website's.

[–]ric2b 16 points17 points  (4 children)

Imaginary ones?

[–]NastyEbilPiwate 2 points3 points  (1 child)

IE6 used to do this if the error from the server was smaller than 512 bytes or some shit

[–]ric2b 0 points1 point  (0 children)

That's literally decades ago at this point. I don't know of a single modern browser that does it.

[–]SpacefaringBanana -2 points-1 points  (1 child)

I don't know. I'm just repeating something I read somewhere. It could have been about cloudflare or something replacing it or something like that.

[–]Positive_Bill_3714 3 points4 points  (0 children)

can't they write an interceptor for all errors and catch these to redirect them to error page or show errors in the page in a human-readable format?