fixed redirect problem if swagger.path is not set + fixed error message on 500