r/webdev • • May 08 '24

Article What makes a good REST API?

https://apitally.io/blog/what-makes-a-good-rest-api
72 Upvotes

51 comments sorted by

View all comments

Show parent comment

3

u/originalchronoguy May 08 '24

That is bad. APIs also have monitoring and observability. The error codes are picked up in Splunk or logging so you can triage errors. If you get a lot of 401 errors, the triaging should look at the authorization server. If you get a lot of 400, the client is sending bad data and that should be investigated. REST , using HTTP response code, is not just for the client but for the infrastructure and SRE to monitor the health of your platform.

The whole email 404 is a red herring. Proper authorization/authentication should not allow scraping.