X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstatus.h;fp=source%2Fstatus.h;h=5d2b19686075bb2a51b5bb1d29cf20e7a3dff94f;hb=070d56e7b0036ca2e4234eb06dcae83ebfb3df34;hp=0000000000000000000000000000000000000000;hpb=bfadc624613e036507ef89b51b951870805eb11f;p=libs%2Fnet.git diff --git a/source/status.h b/source/status.h new file mode 100644 index 0000000..5d2b196 --- /dev/null +++ b/source/status.h @@ -0,0 +1,32 @@ +/* $Id$ + +This file is part of libmsphttp +Copyright © 2008 Mikkosoft Productions, Mikko Rasa +Distributed under the LGPL +*/ + +#ifndef MSP_HTTPSERVER_STATUS_H_ +#define MSP_HTTPSERVER_STATUS_H_ + +#include + +namespace Msp { +namespace Http { + +enum Status +{ + None=0, + OK=200, + BadRequest=400, + Forbidden=403, + NotFound=404, + InternalError=500, + NotImplemented=501 +}; + +extern std::ostream &operator<<(std::ostream &, Status); + +} // namespace Http +} // namespace Msp + +#endif