Skip to content

Commit 0146ccf

Browse files
committed
add annotation for the 400 response
1 parent 9d8046a commit 0146ccf

File tree

1 file changed

+5
-0
lines changed
  • src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/controllers/v1/prison

1 file changed

+5
-0
lines changed

src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/controllers/v1/prison/PrisonController.kt

+5
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ class PrisonController(
4141
description = "<b>Applicable filters</b>: <ul><li>prisons</li></ul>",
4242
responses = [
4343
ApiResponse(responseCode = "200", useReturnTypeSchema = true, description = "Successfully found a prisoner with the provided HMPPS ID."),
44+
ApiResponse(
45+
responseCode = "400",
46+
description = "The HMPPS ID provided has an invalid format.",
47+
content = [Content(schema = Schema(ref = "#/components/schemas/BadRequest"))],
48+
),
4449
ApiResponse(responseCode = "404", content = [Content(schema = Schema(ref = "#/components/schemas/PersonNotFound"))]),
4550
ApiResponse(responseCode = "500", content = [Content(schema = Schema(ref = "#/components/schemas/InternalServerError"))]),
4651
],

0 commit comments

Comments
 (0)