Added the error displaying functionality for server side errors.