- fixed handling of flask http exceptions