Http response code handler