From 73da951a38c88686dcd6794e3ce2a252b7b97e87 Mon Sep 17 00:00:00 2001 From: fahamjv Date: Sat, 28 May 2022 20:27:10 +0430 Subject: [PATCH] a function to get http status code (#1062) --- src/InstagramScraper/Exception/InstagramException.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/InstagramScraper/Exception/InstagramException.php b/src/InstagramScraper/Exception/InstagramException.php index a39dd1b3..3392c36c 100644 --- a/src/InstagramScraper/Exception/InstagramException.php +++ b/src/InstagramScraper/Exception/InstagramException.php @@ -16,4 +16,9 @@ public function getResponseBody() { return $this->responseBody; } + + public function getHttpCode() + { + return $this->code; + } } \ No newline at end of file