Skip to content

feat: add accepted HTTP status codes#3685

Open
jhcpeixoto wants to merge 1 commit into
bluewave-labs:developfrom
jhcpeixoto:feat/http-accepted-status-codes
Open

feat: add accepted HTTP status codes#3685
jhcpeixoto wants to merge 1 commit into
bluewave-labs:developfrom
jhcpeixoto:feat/http-accepted-status-codes

Conversation

@jhcpeixoto
Copy link
Copy Markdown

Summary

  • add an HTTP monitor option for comma-separated accepted status codes such as 200, 204, 401, or 403
  • persist the setting on monitors, import/export it, and expose it in the API schema
  • make HTTP checks treat configured non-2xx codes as successful while preserving advanced body matching

Refs #2389, specifically the wishlist request for custom status-code response validation.

Verification

  • npm run test:unit:services -- --runTestsByPath test/unit/providers/network/httpProvider.test.ts test/unit/validation/monitorValidation.test.ts
  • npm run build:openapi
  • npm run build (server)
  • npm run build (client)
  • npm run format-check (server)
  • npm run format-check (client)
  • targeted ESLint on changed server/client source files

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