Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[9.x] Add 402 exception view #45682

Merged
merged 1 commit into from
Jan 17, 2023
Merged

[9.x] Add 402 exception view #45682

merged 1 commit into from
Jan 17, 2023

Conversation

zepfietje
Copy link
Contributor

Currently no error page exists for exceptions with an HTTP status code of 402 Payment Required.
Even though it's a nonstandard response status code, it's used by multiple large companies to indicate functionality limited due to a payment being required.

Personally, I'm using it in a SaaS project where certain features are only available on a paid plan. If the locked functionality involves entire (public-facing) pages/routes, it makes sense to show a default error view. For example: when users who are not entitled to use the paid feature of embedding a scheduling page on their own site still try to embed the page, they should be greeted with the new 402 exception view.

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.

2 participants