DEV Community

Discussion on: 8 Best Practices for REST API Design

Collapse
 
rafarochas91 profile image
Rafael Rocha

Very good points, for example when it comes to auth you don't want to leak information about what kind of user data exists or doesn't with a 404. That enables to scan what data is there or not as a consumer of the API. Different status codes may be given to the same use cases depending on privacy or auth.
Good catch!