api items controller returns item in json (if error)