client setup to handle all serverside error messages in a pretty generic way