1
0
mirror of https://github.com/httpie/cli.git synced 2026-04-26 20:02:11 +02:00
Files
httpie-cli/httpie/__init__.py
T

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'
2017-02-17 00:56:07 +01:00
__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
2016-10-26 11:53:01 +02:00
# 128+2 SIGINT <http://www.tldp.org/LDP/abs/html/exitcodes.html>
ERROR_CTRL_C = 130
2012-08-07 18:22:47 +02:00
ERROR_TIMEOUT = 2
2016-02-29 13:56:21 +08:00
ERROR_TOO_MANY_REDIRECTS = 6
2012-08-07 18:22:47 +02:00
# Used only when requested with --check-status:
ERROR_HTTP_3XX = 3
ERROR_HTTP_4XX = 4
ERROR_HTTP_5XX = 5