Record credit failures

Another step of #2508. Fixes #1811. Built on top of #2579.
That's what I expect, [the documentation](https://devcenter.heroku.com/articles/http-routing#heroku-headers) doesn't say.