add json attr_reader to error response