I\'m using the API routes in NextJS and I feel there\'s lots of code duplication at least for default errors where I\'m just setting a status code and a message.
Is t