Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
2d2188e7
Commit
2d2188e7
authored
Dec 19, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src: Add 451 status code
https://datatracker.ietf.org/doc/draft-ietf-httpbis-legally-restricted-status/
parent
feae76fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/http2.cc
src/http2.cc
+4
-0
No files found.
src/http2.cc
View file @
2d2188e7
...
@@ -113,6 +113,8 @@ std::string get_status_string(unsigned int status_code) {
...
@@ -113,6 +113,8 @@ std::string get_status_string(unsigned int status_code) {
return
"429 Too Many Requests"
;
return
"429 Too Many Requests"
;
case
431
:
case
431
:
return
"431 Request Header Fields Too Large"
;
return
"431 Request Header Fields Too Large"
;
case
451
:
return
"451 Unavailable For Legal Reasons"
;
case
500
:
case
500
:
return
"500 Internal Server Error"
;
return
"500 Internal Server Error"
;
case
501
:
case
501
:
...
@@ -215,6 +217,8 @@ const char *stringify_status(unsigned int status_code) {
...
@@ -215,6 +217,8 @@ const char *stringify_status(unsigned int status_code) {
return
"429"
;
return
"429"
;
case
431
:
case
431
:
return
"431"
;
return
"431"
;
case
451
:
return
"451"
;
case
500
:
case
500
:
return
"500"
;
return
"500"
;
case
501
:
case
501
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment