about summary refs log tree commit diff
path: root/src/status_code.py
diff options
context:
space:
mode:
authorUltraQbik <no1skill@yandex.ru>2024-08-23 20:36:49 +0300
committerUltraQbik <no1skill@yandex.ru>2024-08-23 20:36:49 +0300
commit9a3c6ea6802f26a479bb91cc6a9ded9d7cb193c7 (patch)
tree6792e0c1678c6bf32270c02ede3501179c989457 /src/status_code.py
parent0169a1834d9cd228fb2ee2810eee9599748b3b67 (diff)
downloadhttpy-9a3c6ea6802f26a479bb91cc6a9ded9d7cb193c7.tar.gz
httpy-9a3c6ea6802f26a479bb91cc6a9ded9d7cb193c7.zip
Add thing to status code
Diffstat (limited to 'src/status_code.py')
-rw-r--r--src/status_code.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/status_code.py b/src/status_code.py
index 8fd165a..a63712c 100644
--- a/src/status_code.py
+++ b/src/status_code.py
@@ -10,6 +10,9 @@ class StatusCode:
     def __bytes__(self):
         return f"{self._code} {self._message}".encode("ascii")
 
+    def __str__(self):
+        return f"{self._code} {self._message}"
+
     @property
     def code(self):
         return self._code