Output default headers on success as well as on error