Allow toUrl() and toRoute() to accept statusCode as a parameter
Revert "Allow toUrl() and toRoute() to accept statusCode as a parameter"

This reverts commit 8d182937c0d3a0ad88fc20f6ffd725d3ce97ed17.
Add $statusCode parameter to toUrl() and toRoute()