diff --git a/src/Rest/RestClient.php b/src/Rest/RestClient.php
index 1f999a207f422fa5c1b332c9bedfad70175eb364..e21a68ff92a87ceb411b8da13691b0f87f06679c 100644
--- a/src/Rest/RestClient.php
+++ b/src/Rest/RestClient.php
@@ -210,7 +210,7 @@ class RestClient implements RestClientInterface {
 
     if (empty($this->response)
     || ((int) floor($this->response->getStatusCode() / 100)) != 2) {
-      throw new RestException($this->response, $this->t('Unknown error occurred during API call "@call": status code @status : @reason', [
+      throw new RestException($this->response, $this->t('Unknown error occurred during API call "@call": status code @code : @reason', [
         '@call' => $path,
         '@code' => $this->response->getStatusCode(),
         '@reason' => $this->response->getReasonPhrase(),