Skip to content

feat(api): standardize deployment error responses #17

Description

@ctxswitch

Parent

Related to #1

What to build

Standardize deployment API error responses so clients can distinguish validation failures, missing resources, and invalid lifecycle transitions.

Acceptance criteria

  • Validation failures return 400 Bad Request.
  • Unknown Deployment Request IDs return 404 Not Found.
  • Invalid lifecycle transitions return 409 Conflict.
  • Error responses use a consistent JSON body with error, message, and optional details.
  • Conflict responses include the current status and attempted transition where applicable.
  • Tests cover representative validation, not-found, and conflict responses.

Blocked by

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions