static server handle errors