code: function SinchErrorStatus(response) {
    MessagingServiceStatus.call(this, 'sinch');
    
    // There was an error when attempting to send message
    this.state.message = response.message + ' -- Reference: ' + response.reference;
  
    // See https://www.sinch.com/docs/sms/#messagingapierrorcodes for details
    if (response.errorCode == 40001) this.state.code = this.state.StatusCodes.DATA_REJECTED;
    else if (response.errorCode == 40002) this.state.code = this.StatusCodes.DATA_REJECTED;
    else if (response.errorCode == 40003) this.state.code = this.StatusCodes.DATA_REJECTED;
    else if (response.errorCode == 40100) this.state.code = this.StatusCodes.UNAUTHORIZED;
    else if (response.errorCode == 40200) this.state.code = this.StatusCodes.LIMIT_EXCEEDED;
    else if (response.errorCode == 40300) this.state.code = this.StatusCodes.UNAUTHORIZED;
    else if (response.errorCode == 40301) this.state.code = this.StatusCodes.UNAUTHORIZED;
    else if (response.errorCode == 40303) this.state.code = this.StatusCodes.DATA_REJECTED;
    else if (response.errorCode == 50000) this.state.code = this.StatusCodes.SERVICE_DOWN;
    else this.state.code = this.state.StatusCodes.DEFAULT;
  }
docs: /*
  Error Status
  
  @param response     JSON response object from Sinch service