diff --git a/striker-ui-api/src/lib/request_handlers/fence/createFence.ts b/striker-ui-api/src/lib/request_handlers/fence/createFence.ts index 108224d4..02766bf8 100644 --- a/striker-ui-api/src/lib/request_handlers/fence/createFence.ts +++ b/striker-ui-api/src/lib/request_handlers/fence/createFence.ts @@ -132,7 +132,7 @@ export const createFence: RequestHandler< return response.status(500).send(); } - const scode = rUuid ? 201 : 200; + const scode = rUuid ? 200 : 201; return response.status(scode).send(); }; diff --git a/striker-ui-api/src/lib/request_handlers/ups/createUps.ts b/striker-ui-api/src/lib/request_handlers/ups/createUps.ts index 7d37b351..88ef8d04 100644 --- a/striker-ui-api/src/lib/request_handlers/ups/createUps.ts +++ b/striker-ui-api/src/lib/request_handlers/ups/createUps.ts @@ -80,7 +80,7 @@ export const createUps: RequestHandler< return response.status(500).send(); } - const scode = rUuid ? 201 : 200; + const scode = rUuid ? 200 : 201; return response.status(scode).send(); };