Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specific HTTP status codes have been added #4003

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lavaFrai
Copy link

@lavaFrai lavaFrai commented Mar 22, 2024

Subsystem: Client/Server, HTTP Status Codes

Motivation:
This PR solves the problem of the lack of support for some specific HTTP status codes that can be used to improve communication between the client and the server. Adding these codes is important to provide a more accurate representation of the state of the system and its responses.

Solution:
The following HTTP status codes have been added to this PR:

  • 418 I'm a Teapot: A code indicating that the server refuses to brew coffee because it is, constantly, a kettle. This is a reference to the Hyper Text Coffee Pot Control Protocol, defined in April Fools' Day jokes of 1998 and 2014.
  • 267 Doubtful But Okay: The HTTP status of Oleg Tinkov's name is 267 Doubtful But Okay. This response status of the web server or application means that the parameters (URL or data) of the request have questionable semantics (possibly conflicting data was transmitted by the client), but, nevertheless, the request was accepted and processed. A little more about this code: https://github.com/maximal/http-267

Both codes were added in order to expand the server's capabilities for more accurate and informative customer feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant