public Ds3BadStatusCodeException(IEnumerable<HttpStatusCode> expectedStatusCodes, HttpStatusCode receivedStatusCode, Ds3Error error, string responseBody)
     : base(StatusCodeMessage(expectedStatusCodes, receivedStatusCode, error))
 {
     this._statusCode = receivedStatusCode;
     this._error = error;
     this._responseBody = responseBody;
 }
 private static string StatusCodeMessage(IEnumerable<HttpStatusCode> expectedStatusCodes, HttpStatusCode receivedStatusCode, Ds3Error error)
 {
     var expectedCodesString = string.Join(", ", expectedStatusCodes);
     if (error == null)
     {
         return string.Format(Resources.BadStatusCodeInvalidErrorResponseException, receivedStatusCode, expectedCodesString);
     }
     else
     {
         return string.Format(Resources.BadStatusCodeException, receivedStatusCode, expectedCodesString, error.Message);
     }
 }