Rest API - HTTP Status Codes
You are designing a REST API for a file storage service. A user tries to access a file:
The user is logged in but does not own the file. Which status code should your API return and why?
GET /files/123
The user is logged in but does not own the file. Which status code should your API return and why?
