From ca886787eaa17c0af18face6e3929cf028b02ea7 Mon Sep 17 00:00:00 2001 From: Railz Date: Tue, 25 Feb 2020 16:51:53 +0100 Subject: [PATCH] Api had responded with 400 instead of 404 --- 5sim_api/Api.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/5sim_api/Api.cs b/5sim_api/Api.cs index 001b243..beac638 100644 --- a/5sim_api/Api.cs +++ b/5sim_api/Api.cs @@ -253,6 +253,10 @@ namespace YoutubeBot._5sim case HttpStatusCode.BadRequest: switch (content) { + // Api had responded with 400 instead of 404 + case "order not found": + throw new OrderNotFoundException(); + case "not enough product qty": throw new NotEnoughProductQuantityException();