httpie-cli/httpie/__init__.py

29 lines
539 B
Python
Raw Normal View History

"""
2012-09-21 05:43:34 +02:00
HTTPie - a CLI, cURL-like tool for humans.
"""
from enum import Enum
2019-08-29 08:53:56 +02:00
__version__ = '2.0.0-dev'
__author__ = 'Jakub Roztocil'
2012-07-17 01:11:01 +02:00
__licence__ = 'BSD'
class ExitStatus(Enum):
"""Program exit code constants."""
SUCCESS = 0
ERROR = 1
2016-12-08 04:42:17 +01:00
PLUGIN_ERROR = 7
# 128+2 SIGINT <http://www.tldp.org/LDP/abs/html/exitcodes.html>
ERROR_CTRL_C = 130
ERROR_TIMEOUT = 2
ERROR_TOO_MANY_REDIRECTS = 6
# Used only when requested with --check-status:
ERROR_HTTP_3XX = 3
ERROR_HTTP_4XX = 4
ERROR_HTTP_5XX = 5