EddieHubCommunity / api

API to manage our community data

Home Page:https://api.eddiehub.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Not Return 400 with invalid token

Cahllagerfeld opened this issue Β· comments

πŸ™ 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

Oh yes, good spot πŸ€“ yep returning a 200 with an invalid message is probably best πŸ‘