feat(common): display status text from the API response if available (#3466)

Co-authored-by: jamesgeorge007 <jamesgeorge998001@gmail.com>
This commit is contained in:
Gaurav K P
2023-12-04 23:31:49 +05:30
committed by GitHub
parent 8d5a456dbd
commit ed2a461dc5
5 changed files with 25 additions and 4 deletions

View File

@@ -53,7 +53,12 @@
<span v-if="response.statusCode">
<span class="text-secondary"> {{ t("response.status") }}: </span>
{{ `${response.statusCode}\xA0 • \xA0`
}}{{ getStatusCodeReasonPhrase(response.statusCode) }}
}}{{
getStatusCodeReasonPhrase(
response.statusCode,
response.statusText
)
}}
</span>
<span v-if="response.meta && response.meta.responseDuration">
<span class="text-secondary"> {{ t("response.time") }}: </span>