Enum ValidationOutcome

Enum Documentation

enum class ros2_medkit_gateway::ValidationOutcome

Outcome when validate_entity_for_route() rejects the request.

Disambiguates the two reasons a validation can fail:

  • kErrorSent: an error response (400/404) was written to res

  • kForwarded: the request was proxied to a peer gateway (aggregation)

In both cases the handler must return immediately - the HTTP response is already committed. The distinction exists so that callers who need to (e.g., logging, metrics) can tell the two apart.

Values:

enumerator kErrorSent
enumerator kForwarded