Skip to content

Define constant for status 499#1501

Open
LokiWager wants to merge 7 commits intoeasegress-io:mainfrom
LokiWager:main
Open

Define constant for status 499#1501
LokiWager wants to merge 7 commits intoeasegress-io:mainfrom
LokiWager:main

Conversation

@LokiWager
Copy link
Collaborator

Defined statusClientClosedRequest constant in pkg/filters/proxies/httpproxy/pool.go and replaced the hardcoded 499 usage with it.

LokiWager and others added 7 commits September 26, 2023 21:27
Defined `statusClientClosedRequest` constant in `pkg/filters/proxies/httpproxy/pool.go`
and replaced the hardcoded 499 usage with it. This addresses the TODO comment.

Co-authored-by: LokiWager <32408858+LokiWager@users.noreply.github.com>
…63240835599583949

Define constant for status code 499
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Defines a named constant for HTTP status code 499 (“Client Closed Request”) and replaces the inline numeric literal usage in the server pool error path.

Changes:

  • Added statusClientClosedRequest constant (499) in pool.go.
  • Replaced hardcoded 499 in the client-disconnect error return with the constant.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

1 participant