Skip to content

Commit

Permalink
fix: status code for indexes that were not found (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Shaw authored May 23, 2023
1 parent a396a4d commit 6d46f8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export function withCarCids (handler) {
}

if (!carCids.length) {
throw new HttpError('missing origin CAR CID(s)', { status: 400 })
throw new HttpError('missing origin CAR CID(s)', { status: 404 })
}

return handler(request, env, { ...ctx, carCids })
Expand Down

0 comments on commit 6d46f8d

Please sign in to comment.