If not error.StatusCode, response.statusCode is 500
If not error.restCode, setting 'NotDefined'
Error are converted into basic object err
Using resterror for InternalServerError
Can just check major for resterror and silence-router version
Using resterror.internalServerError