statuscodes.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00031
00032 #ifndef GENLIB_NET_HTTP_STATUSCODES_H
00033 #define GENLIB_NET_HTTP_STATUSCODES_H
00034
00035
00036
00037 #define HTTP_CONTINUE 100
00038 #define HTTP_SWITCHING_PROCOTOLS 101
00039
00040 #define HTTP_OK 200
00041 #define HTTP_CREATED 201
00042 #define HTTP_ACCEPTED 202
00043 #define HTTP_NON_AUTHORATATIVE 203
00044 #define HTTP_NO_CONTENT 204
00045 #define HTTP_RESET_CONTENT 205
00046 #define HTTP_PARTIAL_CONTENT 206
00047
00048 #define HTTP_MULTIPLE_CHOICES 300
00049 #define HTTP_MOVED_PERMANENTLY 301
00050 #define HTTP_FOUND 302
00051 #define HTTP_SEE_OTHER 303
00052 #define HTTP_NOT_MODIFIED 304
00053 #define HTTP_USE_PROXY 305
00054 #define HTTP_UNUSED_3XX 306
00055 #define HTTP_TEMPORARY_REDIRECT 307
00056
00057 #define HTTP_BAD_REQUEST 400
00058 #define HTTP_UNAUTHORIZED 401
00059 #define HTTP_PAYMENT_REQD 402
00060 #define HTTP_FORBIDDEN 403
00061 #define HTTP_NOT_FOUND 404
00062 #define HTTP_METHOD_NOT_ALLOWED 405
00063 #define HTTP_NOT_ACCEPTABLE 406
00064 #define HTTP_PROXY_AUTH_REQD 407
00065 #define HTTP_REQUEST_TIMEOUT 408
00066 #define HTTP_CONFLICT 409
00067 #define HTTP_GONE 410
00068 #define HTTP_LENGTH_REQUIRED 411
00069 #define HTTP_PRECONDITION_FAILED 412
00070 #define HTTP_REQ_ENTITY_TOO_LARGE 413
00071 #define HTTP_REQ_URI_TOO_LONG 414
00072 #define HTTP_UNSUPPORTED_MEDIA_TYPE 415
00073 #define HTTP_REQUEST_RANGE_NOT_SATISFIABLE 416
00074 #define HTTP_EXPECTATION_FAILED 417
00075
00076 #define HTTP_INTERNAL_SERVER_ERROR 500
00077 #define HTTP_NOT_IMPLEMENTED 501
00078 #define HTTP_BAD_GATEWAY 502
00079 #define HTTP_SERVICE_UNAVAILABLE 503
00080 #define HTTP_GATEWAY_TIMEOUT 504
00081 #define HTTP_HTTP_VERSION_NOT_SUPPORTED 505
00082
00083
00084
00085 #define HTTP_E_OUT_OF_MEMORY -2
00086 #define HTTP_E_BAD_MSG_FORMAT -3
00087 #define HTTP_E_TIMEDOUT -4
00088 #define HTTP_E_FILE_READ -5
00089
00090
00091
00092 #ifdef __cplusplus
00093 extern "C" {
00094 #endif
00095
00096 const char* http_GetCodeText( int statusCode );
00097
00098 #ifdef __cplusplus
00099 }
00100 #endif
00101
00102 #endif