Skip to content

Maintenance: Change HttpErrorCodes constant to HttpStatusCodes #4540

@svozza

Description

@svozza

Summary

We have a constant defined in the REST API event handler that defines all the possible HTTP codes we can serve. Initially this only contained the 4xx codes so it was named HttpErrorCodes but now it contains codes from 1xx to 5xx. We should update the name of the constant to HttpStatusCodes.

Why is this needed?

The current name is misleading and we should change the name before GA so we aren't stuck with it.

Which area does this relate to?

Event Handler

Solution

Rename the HttpErrorCodes constant in packages/event-handler/src/rest/constants.ts.

Acknowledgment

Future readers

Please react with 👍 and your use case to help us understand customer demand.

Metadata

Metadata

Assignees

Labels

completedThis item is complete and has been merged/shippedevent-handlerThis item relates to the Event Handler UtilityinternalPRs that introduce changes in governance, tech debt and chores (linting setup, baseline, etc.)

Type

No type

Projects

Status

Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions