changed error member name in JSON
fixed search API

FIXME: spec is broken.