---
title: "retrieve the current preemption status"
method: GET
path: "/mockserver/preemption"
tags: ["chaos"]
---

# retrieve the current preemption status

`GET /mockserver/preemption`

## Request

- Base URL: `http://localhost:1080`
- URL: `http://localhost:1080/mockserver/preemption`
- Auth: none declared

Returns the current cordon/drain status: state (inactive / draining / drained), the number of in-flight requests, the remaining drain window in milliseconds and the active signalling mode.

## Response `200`

preemption status returned

- PreemptionStatus: current cordon/drain status of the server
  - `state` 'inactive' | 'draining' | 'drained'
  - `inFlight` integer: number of requests currently in flight
  - `drainRemainingMillis` integer: milliseconds left in the drain window
  - `mode` 'reject503' | 'goaway' | 'both': active signalling mode (omitted when inactive)

---

[API](https://skmtc.dev/mock-server/apis/mockserver-api.md) · [All operations](https://skmtc.dev/mock-server/apis/mockserver-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mock-server/apis/mockserver-api/revisions/9239b693996e?raw)
