-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathstatuses.node.txt
19 lines (15 loc) · 1.04 KB
/
statuses.node.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
┏━━━━━━━━━━━━━━┓
┃ STATUSES ┃
┗━━━━━━━━━━━━━━┛
ALTERNATIVES ==> # - statuses (preferred)
# - deno http_statuses (preferred with Deno)
VERSION ==> #2.0.1
#Info about HTTP status codes
codes #STATUS_NUM_ARR
status(STATUS_NUM)->'STATUS' #Throws if cannot find
status('STATUS')->STATUS_NUM #Throws if cannot find. Case-insensitive
message.STATUS_NUM #'STATUS'
code.STATUS #STATUS_NUM
redirect[STATUS_NUM] #True if redirection, i.e. 301|302|307|308 or 303|305 or 300, undefined otherwise
empty[STATUS_NUM] #True if no body, i.e. 204|205 or 304, undefined otherwise
retry[STATUS_NUM] #True if server error but can retry, i.e. 502|503|504, undefined otherwise