jsonified error returning