Changed to return the correct http signature based on whether the file exist or not.