Skip to content

customize the error return #405

Closed
Closed
@jinleileiking

Description

@jinleileiking

If the input type is error, gateway will return a json.

I need to customize the message. Is there a way ?

➜  ~ git:(master) ✗ curl 'localhost:9998/v1/example/echo?name=dddd'
{"error":"strconv.ParseInt: parsing \"dddd\": invalid syntax","code":3}%

the name is int32

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions