handle non-json error entities from server