repldex / Repldex

https://repldex.com
MIT License
21 stars 11 forks source link

Change unauthorized error codes from 500 to 401 #203

Open stjet opened 2 years ago

stjet commented 2 years ago

For example, when attempting to view a hidden entry, or editing tags (admin only), or editing an entry without being logged in, and an user is not an admin, instead of returning 500 error codes, 401 codes should be returned instead