Skip to content

[Bug]: Clarify the Content-Type for errors for the HTTP+JSON transport. #1685

@jmesnil

Description

@jmesnil

What happened?

The spec does not specify what is the content-type for errors for the HTTP+JSON transport, application/json or application/problem+json.

Given that errors now follows https://google.aip.dev/193 instead of RFC 9457, I'd assume that application/json is the right content type for error responses

#1600 seems to be the cause of this missing information (the mention of application/problem+json was removed in this PR).

Note that there are still 2 error examples with application/problem+json in the spec:

while another error example now uses application/json:

If there is an agreement, I propose to:

  • use application/son consistently for JSON-RPC and HTTP+JSON error examples

  • Update

    - **Content-Type:** `application/json` for requests and responses
    :

    • Content-Type: application/json for requests and responses (including error responses)
  • - **Content-Type:** `application/json` for requests and responses
    :

    • Content-Type: application/json for requests and responses (including error responses)

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions