Skip to content

Should sendLocalReply send error response in JSON format? #6166

@qiwzhang

Description

@qiwzhang

Title: Should sendLocalReply send error response in JSON format

Description:
For JSON API, client code is expecting the error response in JSON format. If the response is in plain text, it will crash many client codes.

Should sendLocalReply() send error in JSON format instead of plain text if a request has JSON content-type?

Metadata

Metadata

Assignees

Labels

design proposalNeeds design doc/proposal before implementationenhancementFeature requests. Not bugs or questions.help wantedNeeds help!

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions