code505HttpVersionNotSupported constant

HttpStatus const code505HttpVersionNotSupported

An alias representing the httpVersionNotSupported constant, offering a direct substitute for it.

For consistency and improved readability, it is recommended to directly use httpVersionNotSupported where possible.

505 HTTP VERSION NOT SUPPORTED.

The server does not support, or refuses to support, the major version of HTTP that was used in the request message.

The server is indicating that it is unable or unwilling to complete the request using the same major version as the client, as described in Section 2.6 of RFC7230, other than with this error message. The server SHOULD generate a representation for the 505 response that describes why that version is not supported and what other protocols are supported by that server.

Implementation

static const HttpStatus code505HttpVersionNotSupported =
    httpVersionNotSupported;