From b2b0fe5ceacec4588fa531c9854c3aaa1abc4fbe Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch>
Date: Tue, 3 Mar 2020 08:41:47 +0100
Subject: [PATCH] v0.5 a few more statuscode checks to complete features;
 update docs

---
 readme.md          | 9 +++++++--
 rest-api-client.sh | 5 ++++-
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/readme.md b/readme.md
index ee707ab..0b81620 100644
--- a/readme.md
+++ b/readme.md
@@ -1,6 +1,7 @@
 # REST API CLIENT #
 
 This is a bash solution to script REST API calls.
+
 The specialties of this component are
 
 * It was build to simplify http calls and use it in scripts
@@ -12,6 +13,7 @@ The specialties of this component are
 
 
 Source: https://git-repo.iml.unibe.ch/iml-open-source/bash-rest-api-client
+
 License: GNU GPL 3
 
 
@@ -127,8 +129,11 @@ INSTRUCTION:
 
 - check http status code
 
+      http.getStatus
+        Get the http status as string Ok|Redirect|Error
+
       http.getStatuscode
-        Get the http status code of a request
+        Get the http status code of a request as integer
 
       http.isOk
         Check if the http response code is a 2xx
@@ -178,4 +183,4 @@ INSTRUCTION:
         Delete a file after http.responseExport.
         It is useful if you use the AUTOFILE mechanism.
 
-```
\ No newline at end of file
+```
diff --git a/rest-api-client.sh b/rest-api-client.sh
index ced0a34..ed27935 100644
--- a/rest-api-client.sh
+++ b/rest-api-client.sh
@@ -646,8 +646,11 @@ INSTRUCTION:
 
 - check http status code
 
+      http.getStatus
+        Get the http status as string Ok|Redirect|Error
+
       http.getStatuscode
-        Get the http status code of a request
+        Get the http status code of a request as integer
 
       http.isOk
         Check if the http response code is a 2xx
-- 
GitLab