[HttpFoundation] fix switch statement