Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / examples / Web_Crawler / URL_Status.h
bloba9054470b37dacda823ef0b2e87610365b9cb7b2
1 /* -*- C++ -*- */
3 //=============================================================================
4 /**
5 * @file URL_Status.h
7 * @author Douglas C. Schmidt <d.schmidt@vanderbilt.edu>
8 */
9 //=============================================================================
12 #ifndef _URL_STATUS_H
13 #define _URL_STATUS_H
15 #include "ace/config-all.h"
17 #if !defined (ACE_LACKS_PRAGMA_ONCE)
18 #pragma once
19 #endif /* ACE_LACKS_PRAGMA_ONCE */
21 /**
22 * @class URL_Status
24 class URL_Status
26 public:
27 enum STATUS_CODE
29 STATUS_OK = 200,
30 STATUS_CREATED = 201,
31 STATUS_ACCEPTED = 202,
32 STATUS_NO_CONTENT = 204,
33 STATUS_MOVED_PERMANENTLY = 301,
34 STATUS_MOVED_TEMPORARILY = 302,
35 STATUS_NOT_MODIFIED = 304,
36 STATUS_BAD_REQUEST = 400,
37 STATUS_UNAUTHORIZED = 401,
38 STATUS_FORBIDDEN = 403,
39 STATUS_ITEM_NOT_FOUND = 404,
40 STATUS_INTERNAL_SERVER_ERROR = 500,
41 STATUS_OP_NOT_IMPLEMENTED = 501,
42 STATUS_BAD_GATEWAY = 502,
43 STATUS_SERVICE_UNAVAILABLE = 503,
44 STATUS_INSUFFICIENT_DATA = 399
47 URL_Status (STATUS_CODE = STATUS_INSUFFICIENT_DATA);
48 URL_Status (const URL_Status &);
50 STATUS_CODE status () const;
51 void status (int);
52 void status (STATUS_CODE);
53 int destroy ();
54 private:
55 STATUS_CODE status_;
58 #endif /* _URL_STATUS_H */