return http 404 error code when previewgen fails