Skip to content

HTTP HOOK: return detail error in http response #4502

@thegobot

Description

@thegobot

Return an error from the application or the SRS itself in headers or status codes. This will help you understand why the stream failed to start, either from the application code or the internal state of the SRS.

Example

on_publish "https://example.com/hook/srs/publish";

if stream busy: return status code 100 Continue OR in Headers (the end user will understand that the old stream needs to be stopped)
if error drom application: return response code (proxy?) OR in Headers "status text"

For now, this can only be applied to WHIP

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnglishNativeThis issue is conveyed exclusively in English.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions