Change the FSF address and update LICENSE with the new address and some texts
[MonkeyD.git] / src / include / http_status.h
blob03406865c0302ae7a15a660b6a22f53ad814bba9
1 /* Monkey HTTP Daemon
2 * ------------------
3 * Copyright (C) 2001-2008, Eduardo Silva P.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Library General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 /* http status - jci@tux.cl */
23 /* Informational status */
25 #define M_INFO_CONTINUE 100
26 #define M_INFO_SWITCH_PROTOCOL 101
28 /* Succesful */
30 #define M_HTTP_OK 200
31 #define M_HTTP_CREATED 201
32 #define M_HTTP_ACCEPTED 202
33 #define M_HTTP_NON_AUTH_INFO 203
34 #define M_HTTP_NOCONTENT 204
35 #define M_HTTP_RESET 205
36 #define M_HTTP_PARTIAL 206
38 /* Redirections */
40 #define M_REDIR_MULTIPLE 300
41 #define M_REDIR_MOVED 301
42 #define M_REDIR_MOVED_T 302
43 #define M_REDIR_SEE_OTHER 303
44 #define M_NOT_MODIFIED 304
45 #define M_REDIR_USE_PROXY 305
47 /* Client Errors */
49 #define M_CLIENT_BAD_REQUEST 400
50 #define M_CLIENT_UNAUTH 401
51 #define M_CLIENT_PAYMENT_NEEDED 402 /* Wtf?! :-) */
52 #define M_CLIENT_FORBIDDEN 403
53 #define M_CLIENT_NOT_FOUND 404
54 #define M_CLIENT_METHOD_NOT_ALLOWED 405
55 #define M_CLIENT_NOT_ACCEPTABLE 406
56 #define M_CLIENT_PROXY_AUTH 407
57 #define M_CLIENT_REQUEST_TIMEOUT 408
58 #define M_CLIENT_CONFLICT 409
59 #define M_CLIENT_GONE 410
60 #define M_CLIENT_LENGTH_REQUIRED 411
61 #define M_CLIENT_PRECOND_FAILED 412
62 #define M_CLIENT_REQUEST_ENTITY_TOO_LARGE 413
63 #define M_CLIENT_REQUEST_URI_TOO_LARGE 414
64 #define M_CLIENT_UNSUPPORTED_MEDIA 415
66 /* Server Errors */
68 #define M_SERVER_INTERNAL_ERROR 500
69 #define M_SERVER_NOT_IMPLEMENTED 501
70 #define M_SERVER_BAD_GATEWAY 502
71 #define M_SERVER_SERVICE_UNAV 503
72 #define M_SERVER_GATEWAY_TIMEOUT 504
73 #define M_SERVER_HTTP_VERSION_UNSUP 505
75 /* Text header messages */
76 #define M_HTTP_OK_TXT "HTTP/1.1 200 OK\r\n"
78 mk_list_sint_t *mk_http_status_list;