Skip to content

Content negotiation for errors (404, 405, ...) #7

@weierophinney

Description

@weierophinney

Will be nice if the response of a global error thrown by the library respect the media type provided by Accept header.

This is when error is thrown to a browser (Accept: text/html) error is rendered like now but if it's thrown to the API client (Accept: application/*json) return application/problem+json response.


Originally posted by @Maks3w at zfcampus/zf-rest#72

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions