Fixed notices in http_response when sending responses without views

examples : redirect