HTTP 402 (payment required) -- the missing link

I've implemented HTTP 402 a few times for payment protected resources.

While it works well enough, I ran into a problem.

If payment is required, how does the client know what to do next?

I think ive found the missing link here, and wanted to run it by people
here.

What about sending a Location: header telling the client where to go next?

Then the client can find all the information about how to pay, their
balance, the cost etc.

This should enable smooth work flows for payment protected resources, pay
walls etc.

Thoughts?

Received on Tuesday, 16 June 2015 23:57:54 UTC