Back to course home
0% completed
Vote For New Content
401 vs 403
Vibhor Kashmira
May 15, 2023
Shouldn't we return 403 Forbidden instead of 401 Unauthorized if the user isn't authenticated to access the resource? This because, 401 is fixed by reauthentication, but 403 won't be fixed by that.
2
0
Comments
Comments
On this page
- Why do we need URL shortening?
Try it yourself
Designing URL Shortener (video)
- Requirements and Goals of the System
- Capacity Estimation and Constraints
- System Interface Definition
- Create Short URL API
- Redirect API
- Analytics API
- URL Management API
- Delete Short URL API
- Database Design
- Basic System Design and Algorithm
a. Encoding actual URL
b. Generating keys offline
- Data Partitioning and Replication
- Cache
- Load Balancer (LB)
- Purging or DB cleanup
- Telemetry
- Security and Permissions