It looks like if the API didn't exist it throws an exception here. Should we consider this possibility and give a 404 instead?