Set the http status code to 404 if a profile does not exist

Fixes #75