Handling error status code when using the Prismic Rest API

Hi,

We are using Prismic API to fetch content as below
The first call is to get the API using "/api"
The second is to fetch the document using .Form("everything")......Submit().ConfigureAwait(false);

The response from both the above calls does not have status code. How to capture the status (403 or Faulted etc) in the response?

Thanks in advance

Hi Mangesh,

Can you check out our docs on how to query the API?

The API should return status codes.

Thanks.