I was able to define custom status codes (such as 600) with TSOA in the past (v3.5.2), but it seems like the latest versions don't support this anymore. Considering that TSOA follows the OpenAPI specification, which only allows certain status codes listed here, this change is unexpected.
When attempting to use different status codes with decorators like
@Response<IErrorDomain>('600', 'Custom Error')
, I encountered an error during the build process: Argument of type '"600"' is not assignable to parameter of type 'HttpStatusCodeLiteral | HttpStatusCodeStringLiteral | OtherValidOpenApiHttpStatusCode'
Is there a way to easily achieve this with the current versions of TSOA? If not, are there any alternatives to TSOA that allow for generating swagger documentation from express endpoints while supporting custom status codes?
Appreciate any guidance on this matter.