How to Customize Error message

74 views
Skip to first unread message

muthubabu...@meritgroup.co.uk

unread,
Jan 29, 2018, 9:41:01 AM1/29/18
to Gravitee.io
Hi,

Is there any to way to customize Error message of "No context-path matches the request URI."

Regards,
Muthu Bbau

David Brassely

unread,
Jan 29, 2018, 9:43:10 AM1/29/18
to Gravitee.io
In gravitee.yml (API gateway) you can add this:

 http:
    errors:
        - 404:
        message: "New error message"

muthubabu...@meritgroup.co.uk

unread,
Jan 29, 2018, 11:15:10 AM1/29/18
to Gravitee.io
Hi,

Thanks for your reply,

I have added this lines but it not working, Please give me the guidance for this.

Thanks in advance.

Regards,
Muhu babu

David Brassely

unread,
Jan 29, 2018, 12:40:42 PM1/29/18
to Gravitee.io
Sorry, bad syntax.

It should be:


# Gateway HTTP server
http:
errors[404]:
message: "No API for this path"

# port: 8082
# host: 0.0.0.0
# idleTimeout: 0
# tcpKeepAlive: true
# compressionSupported: false
# instances: 0

muthubabu...@meritgroup.co.uk

unread,
Jan 29, 2018, 1:02:03 PM1/29/18
to Gravitee.io
Thanks, It working fine.
Reply all
Reply to author
Forward
0 new messages