Updating header() calls to ->response->headers->set() in API