Api had responded with 400 instead of 404
This commit is contained in:
parent
bfcc4833e1
commit
ca886787ea
@ -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();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user