using flask json insteed of default
abort response when illegal path is requested