Adding necessary headers to response.