The Cobblers returned to fortress Sixfields on the back of consecutive defeats and Ashley Chambers' early strike was followed by a late John Johnson own goal to deal a further blow to their play-off ambitions.
Boothroyd said: "The run was always going to come to an end sometime but I'd rather it had come to an end in six months' time rather than today.
"York dealt with the occasion better than we did. The pressure was on us to get a result and we didn't get it but we dealt with it last season when we were in a relegation fight and we'll deal with it this year when we're in a promotion fight."
Boothroyd refused to put his side's poor showing down to increased expectation at Sixfields and says his players can handle the pressure as they look to hold on to their play-off place and even get back into the top three.
"I honestly don't think the crowd affected us," he added.
"It's brilliant to play in front of big crowds and you want to win because you want all those people to come back. There's a reason why we've got one of the best home records in the country and if I lose sight of that and start to panic then that's not what I'm paid for.
"I'm paid to keep the ship steady and make sure we're ready for Wycombe on Tuesday because we've got a great chance to bounce back straight away. We thought nine points would be enough and there are three games left so by my maths we should still be able to get the points we need."
- Sports & Recreation
- Ashley Chambers