Koa-respond - "ctx.badRequest" is not a function

Noticing this file in the Strapi core of version 4.20.1: /packages/core/utils/src/parse-multipart.ts

This contains the following code

return ctx.badRequest(
      `When using multipart/form-data you need to provide your data in a JSON 'data' field.`
);

Can’t tell if this code would run eventually, cause yarn develop breaks on the previous error

⠋ Generating types/Users/jeffreyarts/repos/jeff-api/dist/src/api/lorem/controllers/ipsum.ts:20
        return ctx.badRequest(null, [
                   ^

TypeError: ctx.badRequest is not a function