response builder builds successful and unsuccesful file response