---
title: "Trigger an exception"
method: GET
path: "/errorCases"
---

# Trigger an exception

`GET /errorCases`

## Request

- Base URL: `https://researchdata.tuwien.at` (the document declares no server; this is the origin it was published from)
- URL: `https://researchdata.tuwien.at/errorCases`
- Auth: none declared
- TypeScript: <https://skmtc.dev/tuwien/apis/resilient-web-service-api/docs/errorCases/get.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint triggers a specific exception based on the optional input parameter 'expectedException'. If no exception is specified or the exception is not found, a NotFoundException is thrown.

## Query parameters

- `expectedException` string

## Other responses

- `400`: Bad Request - The provided exception is invalid.
- `404`: Not Found - No matching exception found.
- `500`: Internal Server Error - A generic server error occurred.

---

[API](https://skmtc.dev/tuwien/apis/resilient-web-service-api.md) - [All operations](https://skmtc.dev/tuwien/apis/resilient-web-service-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tuwien/apis/resilient-web-service-api/revisions/95d2c4a31179?raw)
