Http.reason: def of gralha-http-core@0.1.0.0 Import: import gralha-http-core@0.1.0.0/http.bend as Http Lines 312-349 of gralha-http-core@0.1.0.0/http.bend: https://jend.leeeet.dev/read.txt?path=gralha-http-core@0.1.0.0/http.bend&start_line=312&end_line=349 import Base # The reason phrase of a status code, or "" for one not listed. def reason(+code: U32) -> String: match code: case 200: "OK" case 201: "Created" case 202: "Accepted" case 204: "No Content" case 206: "Partial Content" case 100: "Continue" case 101: "Switching Protocols" case 301: "Moved Permanently" case 302: "Found" case 303: "See Other" case 304: "Not Modified" case 307: "Temporary Redirect" case 308: "Permanent Redirect" case 400: "Bad Request" case 401: "Unauthorized" case 403: "Forbidden" case 404: "Not Found" case 405: "Method Not Allowed" case 406: "Not Acceptable" case 408: "Request Timeout" case 409: "Conflict" case 410: "Gone" case 411: "Length Required" case 413: "Content Too Large" case 414: "URI Too Long" case 415: "Unsupported Media Type" case 416: "Range Not Satisfiable" case 422: "Unprocessable Content" case 429: "Too Many Requests" case 500: "Internal Server Error" case 501: "Not Implemented" case 502: "Bad Gateway" case 503: "Service Unavailable" case 504: "Gateway Timeout" case _: "" Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Con https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Nil