Apigee error path custom handler

Is there any way to handle wrong path exception.

For example I have 1 proxie with path /v1/test and v1/tset. If I invoke /v1 it return me error in Apigee format that unable to identify proxy for host /v1. And I want to change it to my format. What are the best option to do it?

Solved Solved
0 2 223
1 ACCEPTED SOLUTION

I have added new proxie on / path to catch invalid path error. As I understand Apigee execute Proxy APIs from longest Base Path to shortest. It works.

View solution in original post

2 REPLIES 2

I have added new proxie on / path to catch invalid path error. As I understand Apigee execute Proxy APIs from longest Base Path to shortest. It works.

Yes, so you can register a proxy to listen on / , and that one can return errors in the format you desire. All other proxies with longer basepaths will receive their intended messages and will be able to handle them correctly.