forked from loafle/openapi-generator-original
typescript: fix status code (#12472)
This commit is contained in:
parent
89193074e2
commit
51f624ebe4
@ -208,7 +208,7 @@ export class {{classname}}ResponseProcessor {
|
|||||||
return body;
|
return body;
|
||||||
{{/is2xx}}
|
{{/is2xx}}
|
||||||
{{^is2xx}}
|
{{^is2xx}}
|
||||||
throw new ApiException<{{{dataType}}}>({{code}}, "{{message}}", body, response.headers);
|
throw new ApiException<{{{dataType}}}>(response.httpStatusCode, "{{message}}", body, response.headers);
|
||||||
{{/is2xx}}
|
{{/is2xx}}
|
||||||
{{/dataType}}
|
{{/dataType}}
|
||||||
{{^dataType}}
|
{{^dataType}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user