dedicated function that provides response headers