Skip to content

[5.6] Use 403 status code for InvalidSignatureException - #23662

Merged
taylorotwell merged 1 commit into
laravel:5.6from
tillkruss:switch-to-403
Mar 22, 2018
Merged

[5.6] Use 403 status code for InvalidSignatureException#23662
taylorotwell merged 1 commit into
laravel:5.6from
tillkruss:switch-to-403

Conversation

@tillkruss

@tillkruss tillkruss commented Mar 22, 2018

Copy link
Copy Markdown
Contributor

401 usually refers to authentication, no authorization — so 403 is more appropriate in this case.

This means that the InvalidSignatureException would automatically render the resources/views/errors/403.blade.php template.

@taylorotwell
taylorotwell merged commit b6fc316 into laravel:5.6 Mar 22, 2018
@afraca

afraca commented Mar 26, 2018

Copy link
Copy Markdown
Contributor

This is breaking change btw. Clients behave on status code all the time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants