Error handlers are mindful of Accept header

This would fix #29 once the bot is slightly modified.

r?