Skip to content

/_matrix/client/v1/media/preview_url should clarify what status codes / errors may be returned #2327

@Half-Shot

Description

@Half-Shot

Link to problem area: https://spec.matrix.org/v1.17/client-server-api/#get_matrixclientv1mediapreview_url

Issue

Currently it only documents 200, and 429. However, Synapse returns a 500 error in pretty much all cases except DNS resolution, which is a 502.

Realistically I'd expect a 404 error if the homeserver cannot resolve a URL, with perhaps more specific error codes depending on the type of failure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clarificationAn area where the expected behaviour is understood, but the spec could do with being more explicit

    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