Improved server error sending