Return RawJsonMessage only when an error occur