#include "reason_phrase.h"
Go to the source code of this file.
Defines | |
#define | BLOCK(m) { (sizeof(m) / sizeof(char*)), m } |
Functions | |
const char * | MHD_get_reason_phrase_for (unsigned int code) |
Variables | |
static const char * | invalid_hundred [] = { } |
static const char * | one_hundred [] |
static const char * | two_hundred [] |
static const char * | three_hundred [] |
static const char * | four_hundred [] |
static const char * | five_hundred [] |
static struct MHD_Reason_Block | reasons [] |
Definition in file reason_phrase.c.
#define BLOCK | ( | m | ) | { (sizeof(m) / sizeof(char*)), m } |
Definition at line 107 of file reason_phrase.c.
const char* MHD_get_reason_phrase_for | ( | unsigned int | code | ) |
Returns the string reason phrase for a response code.
If we don't have a string for a status code, we give the first message in that status code class.
Definition at line 119 of file reason_phrase.c.
Referenced by build_header_response().
const char* five_hundred[] [static] |
Initial value:
{ "Internal Server Error", "Not Implemented", "Bad Gateway", "Service Unavailable", "Gateway Time-out", "HTTP Version not supported", "Variant Also Negotiates", "Insufficient Storage", "Bandwidth Limit Exceeded", "Not Extended" }
Definition at line 87 of file reason_phrase.c.
const char* four_hundred[] [static] |
Initial value:
{ "Bad Request", "Unauthorized", "Payment Required", "Forbidden", "Not Found", "Method Not Allowed", "Not Acceptable", "Proxy Authentication Required", "Request Time-out", "Conflict", "Gone", "Length Required", "Precondition Failed", "Request Entity Too Large", "Request-URI Too Large", "Unsupported Media Type", "Requested Range Not Satisfiable", "Expectation Failed", "Unprocessable Entity", "Locked", "Failed Dependency", "Unordered Collection", "Upgrade Required", "Retry With" }
Definition at line 60 of file reason_phrase.c.
const char* invalid_hundred[] = { } [static] |
Definition at line 30 of file reason_phrase.c.
const char* one_hundred[] [static] |
Initial value:
{ "Continue", "Switching Protocols", "Processing" }
Definition at line 32 of file reason_phrase.c.
struct MHD_Reason_Block reasons[] [static] |
Initial value:
{ BLOCK (invalid_hundred), BLOCK (one_hundred), BLOCK (two_hundred), BLOCK (three_hundred), BLOCK (four_hundred), BLOCK (five_hundred), }
Definition at line 109 of file reason_phrase.c.
const char* three_hundred[] [static] |
Initial value:
{ "Multiple Choices", "Moved Permanently", "Moved Temporarily", "See Other", "Not Modified", "Use Proxy", "Switch Proxy", "Temporary Redirect" }
Definition at line 49 of file reason_phrase.c.
const char* two_hundred[] [static] |
Initial value:
{ "OK", "Created", "Accepted", "Non-Authoritative Information", "No Content", "Reset Content", "Partial Content", "Multi Status" }
Definition at line 38 of file reason_phrase.c.