Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

TO: Error response conflict in deliveryservices_required_capabilities #4112

Description

@ericholguin

I'm submitting a ...

  • bug report
  • new feature / enhancement request
  • improvement request (usability, performance, tech debt, etc.)
  • other

Traffic Control components affected ...

  • CDN in a Box
  • Documentation
  • Grove
  • Traffic Control Client
  • Traffic Monitor
  • Traffic Ops
  • Traffic Ops ORT
  • Traffic Portal
  • Traffic Router
  • Traffic Stats
  • Traffic Vault
  • unknown

Current behavior:

When making a POST to /deliveryservices_required_capabilities with a requiredCapability that does not exist and with no servers linked to the same delivery service the error response is:

HTTP/1.1 404 Not Found
Content-Type: application/json

{
    "alerts": [
        {
            "text": "server_capability not found",
            "level": "error"
        }
    ]
}

When making a POST to /deliveryservices_required_capabilities with a requiredCapability that does not exist and servers are linked to the same delivery service the error response is:

HTTP/1.1 400 Bad Request
Content-Type: application/json

{
    "alerts": [
        {
            "text": "capability TEST_DISK1 cannot be made required on the delivery service 2 as it has the associated servers 14 that do not have the capability assigned",
            "level": "error"
        }
    ]
}

Even though the server capability does not exist.

Expected / new behavior:

Should return a 404 and same response message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Traffic Opsrelated to Traffic OpsimprovementThe functionality exists but it could be improved in some way.

    Type

    No type

    Fields

    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