database, ws server and http server basic error handlers