Skip to content

Commit

Permalink
Throw error for 4xx as well rescribet#11
Browse files Browse the repository at this point in the history
  • Loading branch information
joepio committed Sep 24, 2019
1 parent 43383e7 commit b7b726c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/processor/DataProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ export class DataProcessor implements LinkedDataAPI, DeltaProcessor {
}

private feedResponse(res: ResponseAndFallbacks, expedite: boolean = false): Promise<Statement[]> {
if (res.status >= INTERNAL_SERVER_ERROR) {
if (res.status >= BAD_REQUEST) {
return Promise.reject(res);
}
const format = getContentType(res);
Expand Down

0 comments on commit b7b726c

Please sign in to comment.