---
title: "CSException"
description: "CSException"
url: "https://www.contentstack.com/docs/developers/sdks/content-delivery-sdk/php/reference/csexception"
product: "Contentstack"
doc_type: "guide"
audience:
  - developers
  - admins
version: "current"
last_updated: "2026-09-13"
---

# CSException

## CSException

CSException CSException Class is used to wrap the REST API error

## getErrors

Returns error details of current exception

## getStatusCode

To get http status\_code of the current exception

Contentstack error message.

Contentstack Error code

API http status code

## CSException | PHP Delivery SDK | Contentstack

CSException wraps REST API errors in the PHP Delivery SDK, providing structured exception handling for failed Contentstack requests.