Skip to content

Failed responses should put information in the response payload body instead of HTTP header #71

@rikedyp

Description

@rikedyp

When using Jarvis in REST mode, req.Fail can put error information from ⎕EM or ⎕SI (depending on ErrorInfoLevel) into the HTTP response header as the "reason phrase". However, HTTP clients can ignore the reason phrase, proxies can change it and it was removed in the HTTP/2 spec.

I think the error information should be put as the response body/payload when req.Fail is invoked.

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