You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by su...@apache.org on 2020/05/15 15:59:44 UTC

[trafficserver] branch master updated: Adding HTTP Status code 451 for Unavailable For Legal Reasons (RFC 7725) (#6789)

This is an automated email from the ASF dual-hosted git repository.

sudheerv pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 550a2da  Adding HTTP Status code 451 for Unavailable For Legal Reasons (RFC 7725) (#6789)
550a2da is described below

commit 550a2daea047f2f0d06b66eb10d8e35edbc3fb0e
Author: Saurav Kumar <20...@gmail.com>
AuthorDate: Fri May 15 08:59:34 2020 -0700

    Adding HTTP Status code 451 for Unavailable For Legal Reasons (RFC 7725) (#6789)
---
 include/tscpp/api/HttpStatus.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/tscpp/api/HttpStatus.h b/include/tscpp/api/HttpStatus.h
index 1fb3e15..89f6dd8 100644
--- a/include/tscpp/api/HttpStatus.h
+++ b/include/tscpp/api/HttpStatus.h
@@ -82,6 +82,7 @@ enum HttpStatus {
   HTTP_STATUS_PRECONDITION_REQUIRED           = 428,
   HTTP_STATUS_TOO_MANY_REQUESTS               = 429,
   HTTP_STATUS_REQUEST_HEADER_FIELDS_TOO_LARGE = 431,
+  HTTP_STATUS_UNAVAILABLE_FOR_LEGAL_REASONS   = 451,
 
   HTTP_STATUS_INTERNAL_SERVER_ERROR           = 500,
   HTTP_STATUS_NOT_IMPLEMENTED                 = 501,