added route to pass error for cancel query