Send error to the client properly, when error is occurred in event handler with @http