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

Don't charge clients when server-side errors occur #19

Open
philippgille opened this issue Sep 14, 2018 · 0 comments
Open

Don't charge clients when server-side errors occur #19

philippgille opened this issue Sep 14, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@philippgille
Copy link
Owner

For example when the web service is configured wrong, the client shouldn't pay.

Payments should not be restricted to the 2xx range though, bad requests should probably be paid, too.

Also, probably not everyone wants this, so make it configurable, maybe up to the point to configure which status codes to charge for, and maybe even how many Satoshis. E.g.: 100 Satoshis for a bad request, because the client is keeping the server a little busy, but 1000 Satoshis for a request that leads to a call of a paid third party API.

@philippgille philippgille added the enhancement New feature or request label Sep 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant