Adapt error response to conform (mostly) to this standard.
http://tools.ietf.org/html/draft-nottingham-http-problem-02

Added exception info to the error message.