Tellore@lemmy.worldtoProgramming@programming.dev•What is your preferred API error response and why?English
1·
20 days agoIt’s ok for internal admin panels and their backends as there are no security concerns in this case.
It’s ok for internal admin panels and their backends as there are no security concerns in this case.
When consuming APIs you often want JSON in successful scenario. Which means, if you also have JSON in unsuccessful scenario it’s a bit more uniform, because you don’t have to deal with JSON in one case and plaintext response in other. Also, it sometimes can be useful to have additional details there like server’s stacktrace or some identifiers that help troubleshoot complex issues.
Do they lose their karma after deleting the post?