Handle 404s gracefully

Needed for https://github.com/theodi/shared/issues/172

Fixes #108