flugg / laravel-responder

A Laravel Fractal package for building API responses, giving you the power of Fractal with Laravel's elegancy.
MIT License
861 stars 86 forks source link

Change UnauthorizedException http code from 403 to 401 #205

Open UrielRadzyminski1 opened 4 months ago

UrielRadzyminski1 commented 4 months ago

The HTTP standard clearly defines Unauthorized as 401. This change is intended to adhere to said standard.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401