[Solved]:Issue: Call to undefined method Neos\Flow\Mvc\ActionResponse::setStatus()

I am getting below issue intermittently while login into /noes/login,(even tried remove the cache also and node repair)
I have performed the migration from 4.3 to 5 version

Any suggestion?

What exact version of Neos 5?
If not at latest, go to the latest version of Neos CMS 5

Yes It is solved by the lates version of Neos 5
Thanks