FSharp.Azure.Cosmos 1.2.0

Edit this page

ResponseMessage Module

Extensions for ResponseMessage, the response of the SDK's stream APIs.

Functions and values

Function or value Description

getSubStatusCode response

Full Usage: getSubStatusCode response

Parameters:
Returns: int The sub-status code, or 0 when the response has none.

Gets the Cosmos DB sub-status code of a stream response, which ResponseMessage does not expose, unlike SubStatusCode.

The sub-status tells apart responses that share a status code: for example, a 404 without one is a missing item, while a 404 with OwnerResourceNotFound is a missing database or container. The known values are in SubStatusCodes.

response : ResponseMessage

Stream response

Returns: int

The sub-status code, or 0 when the response has none.

ArgumentNullException Thrown when response is .