no more header function calls - using response headers object. handling server errors in http script