Api had responded with 400 instead of 404

This commit is contained in:
Railz 2020-02-25 16:51:53 +01:00
parent bfcc4833e1
commit ca886787ea

View File

@ -253,6 +253,10 @@ namespace YoutubeBot._5sim
case HttpStatusCode.BadRequest: case HttpStatusCode.BadRequest:
switch (content) switch (content)
{ {
// Api had responded with 400 instead of 404
case "order not found":
throw new OrderNotFoundException();
case "not enough product qty": case "not enough product qty":
throw new NotEnoughProductQuantityException(); throw new NotEnoughProductQuantityException();