Return 404 if export file does not exist

- resolves #1047.