errorFormatter called with the request as this

The idea is to call errorFormatter() with the request as this to allow an errorFormatter custom implementation to make use of other information/functions stored on the request for the formatting of the error.

My practical case is to internationalize the message thanks to the user's locale stored along each request.

Let me know what you think of this.