Http status codes
net_http_code_explain¶
Look up and print a description of an HTTP status code. Also accepts category names to print all codes in that category at once.
Example¶
net_http_code_explain 404
net_http_code_explain --short 404
net_http_code_explain --json server
net_http_code_explain --code 200
Arguments¶
- $1 (string): Optional output format flag:
- $2 (string): HTTP status code (e.g. 404) or category keyword:
Exit codes¶
- 0: Success
- 1: No argument or unrecognised code
Output on stdout¶
- The numeric code, short name, and description (default); or formatted output