@Override
    public NettyHttpResponse error(Throwable error) {
        if (error instanceof TooLongFrameException) {
            response.setStatus(HttpResponseStatus.REQUEST_ENTITY_TOO_LARGE);
        } else {
            response.setStatus(HttpResponseStatus.INTERNAL_SERVER_ERROR);
        }
//        String message = getStackTrace(error);
        header("Content-Type", "text/plain");
//        content(message);
				content("Internal server error. We are notified about the problem and will fix it. Sorry for any inconvenience.");
        try{
            flushResponse();
        }catch (IllegalStateException e){
            return null;
        }catch (WebbitException e){
            return null;
        }
        exceptionHandler.uncaughtException(Thread.currentThread(),
                WebbitException.fromException(error, ctx.getChannel()));

        return this;
    }