Repository: mesos Updated Branches: refs/heads/master 75ff14306 -> 34c6400f8
Added a NotImplemented HTTP Response. Review: https://reviews.apache.org/r/36716 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/34c6400f Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/34c6400f Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/34c6400f Branch: refs/heads/master Commit: 34c6400f857fe4a6e2143fdbebbeaa3207a241c7 Parents: 75ff143 Author: Anand Mazumdar <[email protected]> Authored: Wed Jul 22 19:17:25 2015 -0700 Committer: Benjamin Mahler <[email protected]> Committed: Wed Jul 22 19:17:25 2015 -0700 ---------------------------------------------------------------------- 3rdparty/libprocess/include/process/http.hpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/34c6400f/3rdparty/libprocess/include/process/http.hpp ---------------------------------------------------------------------- diff --git a/3rdparty/libprocess/include/process/http.hpp b/3rdparty/libprocess/include/process/http.hpp index 72b6d27..9faed55 100644 --- a/3rdparty/libprocess/include/process/http.hpp +++ b/3rdparty/libprocess/include/process/http.hpp @@ -538,6 +538,20 @@ struct InternalServerError : Response }; +struct NotImplemented : Response +{ + NotImplemented() + { + status = "501 Not Implemented"; + } + + explicit NotImplemented(const std::string& body) : Response(body) + { + status = "501 Not Implemented"; + } +}; + + struct ServiceUnavailable : Response { ServiceUnavailable()
