Skip to content

Commit aace83b

Browse files
committed
fix(Linkwarden): Report http status >= 400 ass HttpError
Signed-off-by: Marcel Klehr <[email protected]>
1 parent 013edb3 commit aace83b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/adapters/Linkwarden.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ export default class LinkwardenAdapter implements Adapter, IResource<typeof Item
347347
if (res.status === 401 || res.status === 403) {
348348
throw new AuthenticationError()
349349
}
350-
if (res.status === 503 || res.status > 400) {
350+
if (res.status === 503 || res.status >= 400) {
351351
throw new HttpError(res.status, verb)
352352
}
353353
const json = res.data

0 commit comments

Comments
 (0)