internal/frontend: fix 400 handling in checkForPath
checkForPath now returns a 404 for 400s, instead of ignoring this state.
Trust: Julie Qiu
@@ -399,7 +399,7 @@ func checkForPath(ctx context.Context, db *postgres.DB,
}
// All remaining non-200 statuses will be in the 40x range.
// In that case, just return a not found error.
- if fr.status > 400 {
+ if fr.status >= 400 {
fr.status = http.StatusNotFound
fr.err = errModuleDoesNotExist
return
