API will 404 when query does not exist

This fixes #50 so a 404 should now be returned if you use an incorrect name for a query.