You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by me...@apache.org on 2015/07/06 23:55:25 UTC
mesos git commit: Added a new HTTP response type: PreconditionFailed.
Repository: mesos
Updated Branches:
refs/heads/master cd6480bf9 -> 7063319ba
Added a new HTTP response type: PreconditionFailed.
Review: https://reviews.apache.org/r/35714
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/7063319b
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/7063319b
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/7063319b
Branch: refs/heads/master
Commit: 7063319ba010b61869e66b11750cb9cdfea5f840
Parents: cd6480b
Author: Michael Park <mc...@gmail.com>
Authored: Mon Jul 6 14:55:00 2015 -0700
Committer: Adam B <ad...@mesosphere.io>
Committed: Mon Jul 6 14:55:00 2015 -0700
----------------------------------------------------------------------
3rdparty/libprocess/include/process/http.hpp | 14 ++++++++++++++
1 file changed, 14 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/7063319b/3rdparty/libprocess/include/process/http.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/include/process/http.hpp b/3rdparty/libprocess/include/process/http.hpp
index 2f89e7a..8d9adc5 100644
--- a/3rdparty/libprocess/include/process/http.hpp
+++ b/3rdparty/libprocess/include/process/http.hpp
@@ -496,6 +496,20 @@ struct UnsupportedMediaType : Response
};
+struct PreconditionFailed : Response
+{
+ PreconditionFailed()
+ {
+ status = "412 Precondition Failed";
+ }
+
+ explicit PreconditionFailed(const std::string& body) : Response(body)
+ {
+ status = "412 Precondition Failed";
+ }
+};
+
+
struct InternalServerError : Response
{
InternalServerError()