split out the headless response
only render a response if our request succeeds