Skip to content

Fix: OpenAPI spec and scanner framework status codes#2269

Open
Kraemii wants to merge 1 commit into
mainfrom
fix-response-codes
Open

Fix: OpenAPI spec and scanner framework status codes#2269
Kraemii wants to merge 1 commit into
mainfrom
fix-response-codes

Conversation

@Kraemii

@Kraemii Kraemii commented Jul 6, 2026

Copy link
Copy Markdown
Member

Correct wrong status codes and sync the OpenAPI spec with the scanner framework:

  • return 409 Conflict (was 406) for duplicate scan IDs, actions on a scan in the wrong state, and deleting a running scan
  • reject malformed range query on GET /scans/{id}/results with 400
  • notus: return 400 on package parse errors and a JSON body on 500
  • document 401 (reusable Unauthorized response) on all authenticated /scans endpoints
  • document 503 on /health/alive and /health/started
  • drop non-idiomatic responses from the spec

Jira: SC-1592

Correct wrong status codes and sync the OpenAPI spec with
the scanner framework:

- return 409 Conflict (was 406) for duplicate scan IDs, actions on a
  scan in the wrong state, and deleting a running scan
- reject malformed `range` query on GET /scans/{id}/results with 400
- notus: return 400 on package parse errors and a JSON body on 500
- document 401 (reusable Unauthorized response) on all authenticated
  /scans endpoints
- document 503 on /health/alive and /health/started
- drop non-idiomatic responses from the spec
@Kraemii Kraemii requested a review from a team as a code owner July 6, 2026 10:53
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA f6b8d30.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

Scanned Files

None

@github-actions github-actions Bot added the patch_release creates a patch release label Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch_release creates a patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant