I am trying to show the error response after success response in API Docs. for example:-
@ApiResponse({status: 401, description: 'invalid_client'}) (it's working)
but I want to give a customCode also like :-
@ApiResponse({status: 401, **customCode **: 'invalid_token', description: 'invalid_client'})
but I am getting an error on adding customCode:-
ERROR IS:- Argument of type '{ status: number; customCode: string; description: string; }' is not assignable to parameter of type 'ApiResponseOptions'. Object literal may only specify known properties, and 'customCode' does not exist in type 'ApiResponseOptions'.
I have tried to figure out from the Nestjs/swagger link but couldn't found the link for this issue.