#!/bin/sh

rfc2616_httpstatus_codes() {
printf '\e[1m%b\e[0m\n' "RFCs 2616, 2817, 7231 HTTP Status Codes"
printf -- '+-------------------------------------------------------------------+\n'
printf '\e[31m%b\e[0m\n' ' Informational 1xx\n'
printf -- ' 100  Continue                       101   Switching Protocols\n'
printf -- '+-------------------------------------------------------------------+\n'
printf -- ' Succesful 2xx\n'
printf -- ' 200  OK\n'
printf -- ' 201  Created                        204  No Content\n'
printf -- ' 202  Accepted                       205  Reset Content\n'
printf -- ' 203  Non-Authoritative Information  206  Partial Content\n'
printf -- '+-------------------------------------------------------------------+\n'
printf -- ' Redirection 3xx\n'
printf -- ' 300  Multiple Choices               304  Not Modified\n'
printf -- ' 301  Moved Permanently              305  Use Proxy\n'
printf -- ' 302  Found                          306  (Unused)\n'
printf -- ' 303  See Other                      307  Temporary Redirect\n'
printf -- '+-------------------------------------------------------------------+\n'
printf -- ' User Error 4xx\n'
printf -- ' 400  Bad Request\n'
printf -- ' 401  Unauthorized                   410  Gone\n'
printf -- ' 402  Payment Required               411  Length Required\n'
printf -- ' 403  Forbidden                      412  Precondition Failed\n'
printf -- ' 404  Not Found                      413  Request Entity Too Large\n'
printf -- ' 405  Method Not Allowed             414  Request-URI Too Long\n'
printf -- ' 406  Not Acceptable                 415  Unsupported Media Type\n'
printf -- ' 407  Proxy Authentication Required  416  Requested Range Not Satisfiable\n'
printf -- ' 408  Request Timeout                417  Expectation Failed\n'
printf -- ' 409  Conflict                       420  Enhance Your Calm\n'
printf -- '+-------------------------------------------------------------------+\n'
printf -- ' Server Error 5xx\n'
printf -- ' 500  Internal Server Error          501  Not Implemented\n'
printf -- ' 502  Bad Gateway                    503  Service Unavailable\n'
printf -- ' 504  Gateway Timeout                505  HTTP Version Not Supported\n'
printf -- '+-------------------------------------------------------------------+\n'
}
