Corrected error with using $app instead of $GLOBALS['app'] in HttpResponse class