typescript: fix status code (#12472)

This commit is contained in:
Kuzma 2022-05-30 12:49:58 +03:00 committed by GitHub
parent 89193074e2
commit 51f624ebe4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -208,7 +208,7 @@ export class {{classname}}ResponseProcessor {
return body;
{{/is2xx}}
{{^is2xx}}
throw new ApiException<{{{dataType}}}>({{code}}, "{{message}}", body, response.headers);
throw new ApiException<{{{dataType}}}>(response.httpStatusCode, "{{message}}", body, response.headers);
{{/is2xx}}
{{/dataType}}
{{^dataType}}