Api had responded with 400 instead of 404

master
Railz 5 years ago
parent bfcc4833e1
commit ca886787ea

@ -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();

Loading…
Cancel
Save