Open chernodub opened 5 months ago
Added the params for more convenient initialization of the error.
Currently, it's only possible to set the status code imperatively like here https://github.com/vercel/micro/blob/9db5838990ef9a7223d0efa9dee9154febd92aeb/test/suite/index.ts#L245
Added the params for more convenient initialization of the error.
Currently, it's only possible to set the status code imperatively like here https://github.com/vercel/micro/blob/9db5838990ef9a7223d0efa9dee9154febd92aeb/test/suite/index.ts#L245