Skip to content

Commit b7b726c

Browse files
committed
Throw error for 4xx as well rescribet#11
1 parent 43383e7 commit b7b726c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/processor/DataProcessor.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ export class DataProcessor implements LinkedDataAPI, DeltaProcessor {
594594
}
595595

596596
private feedResponse(res: ResponseAndFallbacks, expedite: boolean = false): Promise<Statement[]> {
597-
if (res.status >= INTERNAL_SERVER_ERROR) {
597+
if (res.status >= BAD_REQUEST) {
598598
return Promise.reject(res);
599599
}
600600
const format = getContentType(res);

0 commit comments

Comments
 (0)