Koas status code automatically sets the response status code based on the success status code specified in the Open API object.
Koas status code automatically sets the response status code based on the success status code
specified in the Open API object.
``sh`
npm install koa koas-core koas-status-code
`js
const Koa = require('koa');
const { koas } = require('koas-core');
const { statusCode } = require('koas-status-code');
const api = require('./api.json');
const app = new Koa();
app.use(koas(api, [statusCode()]));
``