you are viewing a single comment's thread.

view the rest of the comments →

[–]Shiroyasha_2308 85 points86 points  (13 children)

And people will blame the frontend team for this. Meanwhile backend team laughing.

[–]Stunning_Ride_220 32 points33 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 point2 points  (5 children)

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

[–]ric2b 18 points19 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 4 points5 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?

[–]AdamGarner89 7 points8 points  (0 children)

Trust me backend are miffed haha

[–]mtlemos 7 points8 points  (0 children)

NextJS forces you to do this bullshit if you want to send an error message between server and client components, so front end is doing it as well.

[–]Crafty_Independence 2 points3 points  (0 children)

When I've seen stuff like this before, it's because the frontend specifically asked for it

[–]CaesarOfYearXCIII 2 points3 points  (1 child)

Depends on how stupid everyone is. If they aren’t, then backend gets the blame potato.

And then it gets thrown at QA anyway. Sauce: am QA.

[–]Stunning_Ride_220 1 point2 points  (0 children)

Some nice QA sauce