All header helpers should return string values. If you need a header object, you must use $request->getHeader('Warning');