Partial support for cowboy 0.8.5

Also upgrades the header on bad responses to contain the explanation
instead of the generic HTTP message