Status and error codes
SData 1.x presents in section 3.10 Error payload the information exchange from provider to consumer. These remain valid in SData 2.0.
The JSON object structure for the diagnoses and diagnosis xml elements are described in the JSON documentation.