Add an error handler hook to embed tracebacks in the HTTP response.