utils/ofhttp: Better error output and small bugfix