Skip to content

Commit 2182e78

Browse files
committed
Merge branch 'release/1.5.0' into main
2 parents 14f1cc7 + b344717 commit 2182e78

File tree

12 files changed

+104
-92
lines changed

12 files changed

+104
-92
lines changed

.appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "1.4.0+{build}"
1+
version: "1.5.0+{build}"
22

33
environment:
44
CTEST_OUTPUT_ON_FAILURE: '1'

.github/http-status-codes.txt

Lines changed: 53 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Hypertext Transfer Protocol (HTTP) Status Code Registry
22

33
Last Updated
4-
2018-09-21
4+
2021-12-22
55

66
Available Formats
77
[IMG]
@@ -11,7 +11,7 @@
1111

1212
Registry included below
1313

14-
* HTTP Status Codes
14+
* HTTP Status Codes
1515

1616
HTTP Status Codes
1717

@@ -20,7 +20,7 @@ HTTP Status Codes
2020
IETF Review
2121

2222
Reference
23-
[RFC7231]
23+
[RFC-ietf-httpbis-semantics, Section 16.2.1]
2424

2525
Note
2626

@@ -35,59 +35,60 @@ HTTP Status Codes
3535
[IMG]
3636
CSV
3737

38-
Value Description Reference
39-
100 Continue [RFC7231, Section 6.2.1]
40-
101 Switching Protocols [RFC7231, Section 6.2.2]
38+
Value Description Reference
39+
100 Continue [RFC-ietf-httpbis-semantics, Section 15.2.1]
40+
101 Switching Protocols [RFC-ietf-httpbis-semantics, Section 15.2.2]
4141
102 Processing [RFC2518]
4242
103 Early Hints [RFC8297]
4343
104-199 Unassigned
44-
200 OK [RFC7231, Section 6.3.1]
45-
201 Created [RFC7231, Section 6.3.2]
46-
202 Accepted [RFC7231, Section 6.3.3]
47-
203 Non-Authoritative Information [RFC7231, Section 6.3.4]
48-
204 No Content [RFC7231, Section 6.3.5]
49-
205 Reset Content [RFC7231, Section 6.3.6]
50-
206 Partial Content [RFC7233, Section 4.1]
44+
200 OK [RFC-ietf-httpbis-semantics, Section 15.3.1]
45+
201 Created [RFC-ietf-httpbis-semantics, Section 15.3.2]
46+
202 Accepted [RFC-ietf-httpbis-semantics, Section 15.3.3]
47+
203 Non-Authoritative Information [RFC-ietf-httpbis-semantics, Section 15.3.4]
48+
204 No Content [RFC-ietf-httpbis-semantics, Section 15.3.5]
49+
205 Reset Content [RFC-ietf-httpbis-semantics, Section 15.3.6]
50+
206 Partial Content [RFC-ietf-httpbis-semantics, Section 15.3.7]
5151
207 Multi-Status [RFC4918]
5252
208 Already Reported [RFC5842]
5353
209-225 Unassigned
5454
226 IM Used [RFC3229]
5555
227-299 Unassigned
56-
300 Multiple Choices [RFC7231, Section 6.4.1]
57-
301 Moved Permanently [RFC7231, Section 6.4.2]
58-
302 Found [RFC7231, Section 6.4.3]
59-
303 See Other [RFC7231, Section 6.4.4]
60-
304 Not Modified [RFC7232, Section 4.1]
61-
305 Use Proxy [RFC7231, Section 6.4.5]
62-
306 (Unused) [RFC7231, Section 6.4.6]
63-
307 Temporary Redirect [RFC7231, Section 6.4.7]
64-
308 Permanent Redirect [RFC7538]
56+
300 Multiple Choices [RFC-ietf-httpbis-semantics, Section 15.4.1]
57+
301 Moved Permanently [RFC-ietf-httpbis-semantics, Section 15.4.2]
58+
302 Found [RFC-ietf-httpbis-semantics, Section 15.4.3]
59+
303 See Other [RFC-ietf-httpbis-semantics, Section 15.4.4]
60+
304 Not Modified [RFC-ietf-httpbis-semantics, Section 15.4.5]
61+
305 Use Proxy [RFC-ietf-httpbis-semantics, Section 15.4.6]
62+
306 (Unused) [RFC-ietf-httpbis-semantics, Section 15.4.7]
63+
307 Temporary Redirect [RFC-ietf-httpbis-semantics, Section 15.4.8]
64+
308 Permanent Redirect [RFC-ietf-httpbis-semantics, Section 15.4.9]
6565
309-399 Unassigned
66-
400 Bad Request [RFC7231, Section 6.5.1]
67-
401 Unauthorized [RFC7235, Section 3.1]
68-
402 Payment Required [RFC7231, Section 6.5.2]
69-
403 Forbidden [RFC7231, Section 6.5.3]
70-
404 Not Found [RFC7231, Section 6.5.4]
71-
405 Method Not Allowed [RFC7231, Section 6.5.5]
72-
406 Not Acceptable [RFC7231, Section 6.5.6]
73-
407 Proxy Authentication Required [RFC7235, Section 3.2]
74-
408 Request Timeout [RFC7231, Section 6.5.7]
75-
409 Conflict [RFC7231, Section 6.5.8]
76-
410 Gone [RFC7231, Section 6.5.9]
77-
411 Length Required [RFC7231, Section 6.5.10]
78-
412 Precondition Failed [RFC7232, Section 4.2][RFC8144, Section 3.2]
79-
413 Payload Too Large [RFC7231, Section 6.5.11]
80-
414 URI Too Long [RFC7231, Section 6.5.12]
81-
415 Unsupported Media Type [RFC7231, Section 6.5.13][RFC7694, Section 3]
82-
416 Range Not Satisfiable [RFC7233, Section 4.4]
83-
417 Expectation Failed [RFC7231, Section 6.5.14]
84-
418-420 Unassigned
85-
421 Misdirected Request [RFC7540, Section 9.1.2]
86-
422 Unprocessable Entity [RFC4918]
66+
400 Bad Request [RFC-ietf-httpbis-semantics, Section 15.5.1]
67+
401 Unauthorized [RFC-ietf-httpbis-semantics, Section 15.5.2]
68+
402 Payment Required [RFC-ietf-httpbis-semantics, Section 15.5.3]
69+
403 Forbidden [RFC-ietf-httpbis-semantics, Section 15.5.4]
70+
404 Not Found [RFC-ietf-httpbis-semantics, Section 15.5.5]
71+
405 Method Not Allowed [RFC-ietf-httpbis-semantics, Section 15.5.6]
72+
406 Not Acceptable [RFC-ietf-httpbis-semantics, Section 15.5.7]
73+
407 Proxy Authentication Required [RFC-ietf-httpbis-semantics, Section 15.5.8]
74+
408 Request Timeout [RFC-ietf-httpbis-semantics, Section 15.5.9]
75+
409 Conflict [RFC-ietf-httpbis-semantics, Section 15.5.10]
76+
410 Gone [RFC-ietf-httpbis-semantics, Section 15.5.11]
77+
411 Length Required [RFC-ietf-httpbis-semantics, Section 15.5.12]
78+
412 Precondition Failed [RFC-ietf-httpbis-semantics, Section 15.5.13]
79+
413 Content Too Large [RFC-ietf-httpbis-semantics, Section 15.5.14]
80+
414 URI Too Long [RFC-ietf-httpbis-semantics, Section 15.5.15]
81+
415 Unsupported Media Type [RFC-ietf-httpbis-semantics, Section 15.5.16]
82+
416 Range Not Satisfiable [RFC-ietf-httpbis-semantics, Section 15.5.17]
83+
417 Expectation Failed [RFC-ietf-httpbis-semantics, Section 15.5.18]
84+
418 (Unused) [RFC-ietf-httpbis-semantics, Section 15.5.19]
85+
419-420 Unassigned
86+
421 Misdirected Request [RFC-ietf-httpbis-semantics, Section 15.5.20]
87+
422 Unprocessable Content [RFC-ietf-httpbis-semantics, Section 15.5.21]
8788
423 Locked [RFC4918]
8889
424 Failed Dependency [RFC4918]
8990
425 Too Early [RFC8470]
90-
426 Upgrade Required [RFC7231, Section 6.5.15]
91+
426 Upgrade Required [RFC-ietf-httpbis-semantics, Section 15.5.22]
9192
427 Unassigned
9293
428 Precondition Required [RFC6585]
9394
429 Too Many Requests [RFC6585]
@@ -96,16 +97,16 @@ HTTP Status Codes
9697
432-450 Unassigned
9798
451 Unavailable For Legal Reasons [RFC7725]
9899
452-499 Unassigned
99-
500 Internal Server Error [RFC7231, Section 6.6.1]
100-
501 Not Implemented [RFC7231, Section 6.6.2]
101-
502 Bad Gateway [RFC7231, Section 6.6.3]
102-
503 Service Unavailable [RFC7231, Section 6.6.4]
103-
504 Gateway Timeout [RFC7231, Section 6.6.5]
104-
505 HTTP Version Not Supported [RFC7231, Section 6.6.6]
100+
500 Internal Server Error [RFC-ietf-httpbis-semantics, Section 15.6.1]
101+
501 Not Implemented [RFC-ietf-httpbis-semantics, Section 15.6.2]
102+
502 Bad Gateway [RFC-ietf-httpbis-semantics, Section 15.6.3]
103+
503 Service Unavailable [RFC-ietf-httpbis-semantics, Section 15.6.4]
104+
504 Gateway Timeout [RFC-ietf-httpbis-semantics, Section 15.6.5]
105+
505 HTTP Version Not Supported [RFC-ietf-httpbis-semantics, Section 15.6.6]
105106
506 Variant Also Negotiates [RFC2295]
106107
507 Insufficient Storage [RFC4918]
107108
508 Loop Detected [RFC5842]
108109
509 Unassigned
109-
510 Not Extended [RFC2774]
110+
510 Not Extended (OBSOLETED) [RFC2774][status-change-http-experiments-to-historic]
110111
511 Network Authentication Required [RFC6585]
111-
512-599 Unassigned
112+
512-599 Unassigned

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
3+
on: [ push, pull_request, workflow_dispatch ]
4+
5+
jobs:
6+
build_and_test:
7+
name: Build & Test
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Build and run tests
12+
run: >
13+
docker run --rm
14+
-v "${GITHUB_WORKSPACE}:/workspace"
15+
julrich/docker_qt:latest
16+
/bin/bash -c "
17+
cd /workspace
18+
&& g++ --version
19+
&& qmake --version
20+
&& cd tests
21+
&& mkdir _build
22+
&& cd _build
23+
&& cmake -DCMAKE_BUILD_TYPE=Release ..
24+
&& make all
25+
&& ctest --output-on-failure
26+
"

.travis.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ This changelog follows the [Keep a Changelog](http://keepachangelog.com) format.
1010
---
1111

1212

13+
## [1.5.0] - 2022-01-03 ##
14+
15+
### Changed ###
16+
- [#21] Code `NotExtended` (510) is marked as obsoleted.
17+
18+
19+
---
20+
21+
1322
## [1.4.0] - 2021-11-05 ##
1423
Updates and adds missing status codes from the IANA registry.
1524

@@ -25,7 +34,6 @@ Updates and adds missing status codes from the IANA registry.
2534
- {C++11} Added missing `Code::xxx_max` enumerator.
2635

2736

28-
2937
---
3038

3139

@@ -83,6 +91,7 @@ Initial (actually unversioned) release.
8391
---
8492

8593

94+
[1.5.0]: https://github.com/j-ulrich/http-status-codes-cpp/releases/tag/1.5.0
8695
[1.4.0]: https://github.com/j-ulrich/http-status-codes-cpp/releases/tag/1.4.0
8796
[1.3.0]: https://github.com/j-ulrich/http-status-codes-cpp/releases/tag/1.3.0
8897
[1.2.0]: https://github.com/j-ulrich/http-status-codes-cpp/releases/tag/1.2.0

HttpStatusCodes_C++.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* https://github.com/j-ulrich/http-status-codes-cpp
66
*
7-
* \version 1.4.0
7+
* \version 1.5.0
88
* \author Jochen Ulrich <[email protected]>
99
* \copyright Licensed under Creative Commons CC0 (http://creativecommons.org/publicdomain/zero/1.0/)
1010
*/
@@ -111,7 +111,8 @@ enum Code
111111
VariantAlsoNegotiates = 506, //!< Indicates that the server has an internal configuration error: the chosen variant resource is configured to engage in transparent content negotiation itself, and is therefore not a proper end point in the negotiation process.
112112
InsufficientStorage = 507, //!< Means the method could not be performed on the resource because the server is unable to store the representation needed to successfully complete the request.
113113
LoopDetected = 508, //!< Indicates that the server terminated an operation because it encountered an infinite loop while processing a request with "Depth: infinity". [RFC 5842]
114-
NotExtended = 510, //!< The policy for accessing the resource has not been met in the request. [RFC 2774]
114+
NotExtended = 510, //!< \deprecated \parblock Obsoleted as the experiment has ended and there is no evidence of widespread use. \endparblock
115+
//!< The policy for accessing the resource has not been met in the request. [RFC 2774]
115116
NetworkAuthenticationRequired = 511, //!< Indicates that the client needs to authenticate to gain network access.
116117

117118
xxx_max = 1023

HttpStatusCodes_C++11.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* https://github.com/j-ulrich/http-status-codes-cpp
66
*
7-
* \version 1.4.0
7+
* \version 1.5.0
88
* \author Jochen Ulrich <[email protected]>
99
* \copyright Licensed under Creative Commons CC0 (http://creativecommons.org/publicdomain/zero/1.0/)
1010
*/
@@ -111,7 +111,8 @@ enum class Code
111111
VariantAlsoNegotiates = 506, //!< Indicates that the server has an internal configuration error: the chosen variant resource is configured to engage in transparent content negotiation itself, and is therefore not a proper end point in the negotiation process.
112112
InsufficientStorage = 507, //!< Means the method could not be performed on the resource because the server is unable to store the representation needed to successfully complete the request.
113113
LoopDetected = 508, //!< Indicates that the server terminated an operation because it encountered an infinite loop while processing a request with "Depth: infinity". [RFC 5842]
114-
NotExtended = 510, //!< The policy for accessing the resource has not been met in the request. [RFC 2774]
114+
NotExtended = 510, //!< \deprecated \parblock Obsoleted as the experiment has ended and there is no evidence of widespread use. \endparblock
115+
//!< The policy for accessing the resource has not been met in the request. [RFC 2774]
115116
NetworkAuthenticationRequired = 511, //!< Indicates that the client needs to authenticate to gain network access.
116117

117118
xxx_max = 1023

HttpStatusCodes_C.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* https://github.com/j-ulrich/http-status-codes-cpp
66
*
7-
* \version 1.4.0
7+
* \version 1.5.0
88
* \author Jochen Ulrich <[email protected]>
99
* \copyright Licensed under Creative Commons CC0 (http://creativecommons.org/publicdomain/zero/1.0/)
1010
*/
@@ -104,7 +104,8 @@ enum HttpStatus_Code
104104
HttpStatus_VariantAlsoNegotiates = 506, /*!< Indicates that the server has an internal configuration error: the chosen variant resource is configured to engage in transparent content negotiation itself, and is therefore not a proper end point in the negotiation process. */
105105
HttpStatus_InsufficientStorage = 507, /*!< Means the method could not be performed on the resource because the server is unable to store the representation needed to successfully complete the request. */
106106
HttpStatus_LoopDetected = 508, /*!< Indicates that the server terminated an operation because it encountered an infinite loop while processing a request with "Depth: infinity". [RFC 5842] */
107-
HttpStatus_NotExtended = 510, /*!< The policy for accessing the resource has not been met in the request. [RFC 2774] */
107+
HttpStatus_NotExtended = 510, /*!< \deprecated \parblock Obsoleted as the experiment has ended and there is no evidence of widespread use. \endparblock
108+
The policy for accessing the resource has not been met in the request. [RFC 2774] */
108109
HttpStatus_NetworkAuthenticationRequired = 511, /*!< Indicates that the client needs to authenticate to gain network access. */
109110

110111
HttpStatus_xxx_max = 1023

HttpStatusCodes_Qt.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* https://github.com/j-ulrich/http-status-codes-cpp
66
*
7-
* \version 1.4.0
7+
* \version 1.5.0
88
* \author Jochen Ulrich <[email protected]>
99
* \copyright Licensed under Creative Commons CC0 (http://creativecommons.org/publicdomain/zero/1.0/)
1010
*/
@@ -120,7 +120,8 @@ enum Code
120120
VariantAlsoNegotiates = 506, //!< Indicates that the server has an internal configuration error: the chosen variant resource is configured to engage in transparent content negotiation itself, and is therefore not a proper end point in the negotiation process.
121121
InsufficientStorage = 507, //!< Means the method could not be performed on the resource because the server is unable to store the representation needed to successfully complete the request.
122122
LoopDetected = 508, //!< Indicates that the server terminated an operation because it encountered an infinite loop while processing a request with "Depth: infinity". [RFC 5842]
123-
NotExtended = 510, //!< The policy for accessing the resource has not been met in the request. [RFC 2774]
123+
NotExtended = 510, //!< \deprecated \parblock Obsoleted as the experiment has ended and there is no evidence of widespread use. \endparblock
124+
//!< The policy for accessing the resource has not been met in the request. [RFC 2774]
124125
NetworkAuthenticationRequired = 511, //!< Indicates that the client needs to authenticate to gain network access.
125126

126127
xxx_max = 1023

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# HTTP Status Codes and Reason Phrases for C, C++ and Qt #
22

3-
[![Linux build status](https://travis-ci.com/j-ulrich/http-status-codes-cpp.svg?branch=main)](https://app.travis-ci.com/github/j-ulrich/http-status-codes-cpp)
3+
[![Linux build status](https://github.com/j-ulrich/http-status-codes-cpp/actions/workflows/ci.yml/badge.svg)](https://github.com/j-ulrich/http-status-codes-cpp/actions/workflows/ci.yml)
44
[![Windows build status](https://ci.appveyor.com/api/projects/status/ijp196mjo0vsover/branch/main?svg=true)](https://ci.appveyor.com/project/j-ulrich/http-status-codes-cpp/branch/main)
55

66

0 commit comments

Comments
 (0)