Added test for automatic integer casting in Error document.
Added test for automatic integer casting in Error document.

SAM-IT/json-api,creocoder/json-api,mbrzuchalski/json-api,neomerx/json-api,Lavoaster/json-api