Accept integers for $status and $code in Error document constructor and cast them to string.
Accept integers for $status and $code in Error document constructor and cast them to string.

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