@startuml
'https://plantuml.com/sequence-diagram

title Stop Live Stream

autonumber
== Stop a Lobby Live Stream ==
Client -> Media_Server: DELETE /space/<<spaceId>>/stream/<<streamId>>/live/<<live-id>>
note right
__Header__:
- Content-Type: "application/json"
- Cookie: <<Session-Cookie>>
- X-Req-Token: <<Request-Token>>
- Authorization: Bearer <JWT> {
    home: <<serverDomainName>>
    userId: <<User Identifier>>
   }
end note

Client <-- Media_Server: 204 No Content
note right
__Header__:
- Content-Type: "application/json"
- Content-Length: <<number>>
- Cookie: <<Session-Cookie>>
- X-Req-Token: <<Request-Token>>
- ETag: <<hash>>
end note

== Other Response Cases ==

Client <-- Media_Server: 400 Bad Request
Client <-- Media_Server: 401 Unauthorised
Client <-- Media_Server: 404 Not Found
Client <-- Media_Server: 500 Internal Server Error

@enduml
