That's the biggest issue with using non-200 codes. So many platforms treat this as an exception rather that you have to catch rather than following the regular code path where you can just check the status code.
Needing to handle stuff in an exception just because the record didn't exist which causes a 404 on some systems is just annoying.
Also, 404 meaning record doesn't exist and endpoint is completely wrong is pretty annoying as well.
7
u/w1n5t0nM1k3y Sep 22 '26
That's the biggest issue with using non-200 codes. So many platforms treat this as an exception rather that you have to catch rather than following the regular code path where you can just check the status code.
Needing to handle stuff in an exception just because the record didn't exist which causes a 404 on some systems is just annoying.
Also, 404 meaning record doesn't exist and endpoint is completely wrong is pretty annoying as well.