3 ms·
Its easy and useful if you just return details in response bodies, which you can do with errors as well as 200s, and that lets everything else (including client
by dragonwriter 3y ago
Its easy and useful if you just return details in response bodies, which you can do with errors as well as 200s, and that lets everything else (including client code) that deals with your responses (which doesn’t generally care if it hit your application code as likely as it cares about the things HTTP error codes communicate) handle errors without having to code for your bespoke method of error reporting.