Return if error occured in http writer