pitaya icon indicating copy to clipboard operation
pitaya copied to clipboard

Can you provide a callback function for the error in request path 404? If there is a business interruption, please handle the path error information uniformly

Open liqingxi1116 opened this issue 2 years ago • 5 comments

pitaya/handler, url not found error

liqingxi1116 avatar Nov 30 '23 05:11 liqingxi1116

Similar to gin's noRoute and noMethod, it allows me to customize error data structures

liqingxi1116 avatar Nov 30 '23 05:11 liqingxi1116

for example , I don't want this {"code":"PIT-404","msg":"pitaya/handler: gateway.gateway.gadga not found"} data. I hope to customize the data structure

liqingxi1116 avatar Dec 04 '23 07:12 liqingxi1116

what about checking the returned ERROR type?

bruce1125 avatar Dec 11 '23 03:12 bruce1125

Should be a simple change if you wish to send a contribution

felipejfc avatar Dec 18 '23 17:12 felipejfc