RaiseHttpError

Throws an error based on provided HTTP response data

  • Stored Procedure
  • SQL Server Compatibility: 2008, 2012, 2014, 2016, 2017

Syntax:

EXEC SQLHTTP.net.RaiseHttpError @StatusCode, @StatusDescription, [@Response]

Arguments:

Name Type Description
@StatusCode int Numeric status of the previous HTTP response
@StatusDescription nvarchar(MAX) Status Description of the previous HTTP response
@Response nvarchar(MAX) Optional. Data received from the previous HTTP response. Binary data is returned as a Base64 string

Sample Usage:

See Also: