Return a more helpful error message in the event of a 404 due to an invalid refs path.
Merge pull request #288 from alfhenrik/helpful-exception-on-invalid-input

Return a more helpful error message if an invalid refs path is provided