Skip to content

Comments

Changed HTTP status codes to http.StatusCode instead of the actual numbers#85

Merged
tallen42 merged 1 commit intodevfrom
http-status-names
Feb 23, 2026
Merged

Changed HTTP status codes to http.StatusCode instead of the actual numbers#85
tallen42 merged 1 commit intodevfrom
http-status-names

Conversation

@pikachu0542
Copy link
Member

What

Used http.StatusCode for all the status codes instead of specifying the actual number

Why

Makes it easier to identify what status is being returned. Also good for if any status code numbers get changed (not that i think this would happen, but its a theoretical benefit)

Test Plan

  • Verify all numeric status codes are replaced with the equivalent http.StatusCode
  • Ensure that all instances where I changed a 500 to something else actually makes sense in context

Env Vars

No

Checklist

  • Tested all changes locally

…ged some 500s to 400s where appropriate to indicate user error
@pikachu0542 pikachu0542 self-assigned this Feb 23, 2026
@pikachu0542 pikachu0542 added enhancement New feature or request go Pull requests that update go code labels Feb 23, 2026
Copy link
Contributor

@tallen42 tallen42 left a comment

Choose a reason for hiding this comment

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

lgtm

@tallen42 tallen42 merged commit 8189e8a into dev Feb 23, 2026
1 check passed
tallen42 pushed a commit that referenced this pull request Feb 23, 2026
…ged some 500s to 400s where appropriate to indicate user error (#85)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants