API: Return a 404 error when no director rule is matched
Merge pull request #1729 from ajshort/no-rule-match-404

API: Return a 404 error when no director rule is matched