[BUG] Not Return 400 with invalid token
Cahllagerfeld opened this issue Β· comments
Cahllagerfeld commented
π Actual behavior
When validating a token a 400
gets returned in case the token is invalid.
I tried to implement this feature yesterday to the bot - Problem is when returning a 400 its treated like an exception which means that we need to catch it in the Bot.
π Expected behaviour
In my opinion we should return 200
as the operation on the server was executed successfully, but only with the result, that the token is not valid
π’ Steps to Reproduce the Problem
No response
Eddie Jaoude commented
Oh yes, good spot π€ yep returning a 200
with an invalid message is probably best π