We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7a2391 commit b75eb0dCopy full SHA for b75eb0d
1 file changed
workspaces/ai-integrations/plugins/catalog-techdoc-url-reader-backend/src/plugin.ts
@@ -34,7 +34,7 @@ import {
34
LoggerService,
35
} from '@backstage/backend-plugin-api';
36
import { Config } from '@backstage/config';
37
-import { NotFoundError } from '@backstage/errors';
+import { NotFoundError, NotModifiedError } from '@backstage/errors';
38
import { Readable } from 'stream';
39
import fs from 'fs';
40
import platformPath from 'path';
@@ -174,6 +174,9 @@ export class ModeCatalogBridgeTechdocUrlReader implements UrlReaderService {
174
if (response.status === 404) {
175
throw new NotFoundError(message);
176
}
177
+ if (response.status === 304) {
178
+ throw new NotModifiedError();
179
+ }
180
throw new Error(message);
181
182
0 commit comments