Skip to content

Add more accurate BadRequest handling - #5786

Open
KludgeKML wants to merge 1 commit into
mainfrom
strict-content-store
Open

Add more accurate BadRequest handling#5786
KludgeKML wants to merge 1 commit into
mainfrom
strict-content-store

Conversation

@KludgeKML

Copy link
Copy Markdown
Contributor

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

What

Add explicit capture/report of BadRequests from GdsApi::HTTPBadRequest

Why

Currently bad requests are getting turned into 503s, which means they turn up in Sentry. We should ideally not be alerting on these, so return a correct 400 (this will be important when we include gds-api-adapters 103.5.0, which returns BadRequest immediately when we ask content store for a path that doesn't conform to RFC-192

@govuk-ci
govuk-ci temporarily deployed to govuk-frontend-app-pr-5786 September 9, 2026 12:46 Inactive
@govuk-ci
govuk-ci temporarily deployed to govuk-frontend-app-pr-5786 September 9, 2026 12:51 Inactive
- Currently bad requests are getting intercepted by some default method that translates them into 503s. Add explict capture.

@CodeSonia CodeSonia left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

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.

3 participants