Throw 501 error when route doesn't match anything