in ports/coreHTTP/azure_iot_core_http.c [14:71]
static AzureIoTHTTPResult_t prvTranslateToAzureIoTHTTPResult( HTTPStatus_t xResult )
{
switch( xResult )
{
case HTTPSuccess:
return eAzureIoTHTTPSuccess;
case HTTPInvalidParameter:
return eAzureIoTHTTPInvalidParameter;
case HTTPNetworkError:
return eAzureIoTHTTPNetworkError;
case HTTPPartialResponse:
return eAzureIoTHTTPPartialResponse;
case HTTPNoResponse:
return eAzureIoTHTTPNoResponse;
case HTTPInsufficientMemory:
return eAzureIoTHTTPInsufficientMemory;
case HTTPSecurityAlertResponseHeadersSizeLimitExceeded:
return eAzureIoTHTTPSecurityAlertResponseHeadersSizeLimitExceeded;
case HTTPSecurityAlertExtraneousResponseData:
return eAzureIoTHTTPSecurityAlertExtraneousResponseData;
case HTTPSecurityAlertInvalidChunkHeader:
return eAzureIoTHTTPSecurityAlertInvalidChunkHeader;
case HTTPSecurityAlertInvalidProtocolVersion:
return eAzureIoTHTTPSecurityAlertInvalidProtocolVersion;
case HTTPSecurityAlertInvalidStatusCode:
return eAzureIoTHTTPSecurityAlertInvalidStatusCode;
case HTTPSecurityAlertInvalidCharacter:
return eAzureIoTHTTPSecurityAlertInvalidCharacter;
case HTTPSecurityAlertInvalidContentLength:
return eAzureIoTHTTPSecurityAlertInvalidContentLength;
case HTTPParserInternalError:
return eAzureIoTHTTPParserInternalError;
case HTTPHeaderNotFound:
return eAzureIoTHTTPHeaderNotFound;
case HTTPInvalidResponse:
return eAzureIoTHTTPInvalidResponse;
default:
return eAzureIoTHTTPError;
}
return eAzureIoTHTTPError;
}