This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # based on https://github.com/rspivak/httpcode/blob/master/src/httpcode/__init__.py | |
| # http://ruslanspivak.com/2011/12/21/httpcode-explain-http-status-code-on-the-command-line/ | |
| # just put it into your Powershell profile and use like $http_status_code[405] | |
| $http_status_codes = @{ | |
| 100 = @('<Continue>', 'Request received, please continue'); | |
| 101 = @('<Switching Protocols>', | |
| 'Switching to new protocol; obey Upgrade header'); | |
| 200 = @('<OK>', 'Request fulfilled, document follows'); |