RestResponse.getCode

Returns the HTTP response code following a RestServices call

returns int