[HttpFoundation] fixed constants that do exist in 2.3 (only in 2.4)