ProspectOne / perfops-cli

A simple command line tool to interact with hundreds of servers around the world.
https://perfops.net/cli
287 stars 45 forks source link

API wrong key #9

Closed jimaek closed 7 years ago

jimaek commented 7 years ago

If the API key is wrong the API responds with error.

Show a message "The API token was declined. Please correct it or don't send a token at all to use the free plan"

boki commented 7 years ago

It would be nice to get a 401 Unauthorized HTTP status for bad API keys instead of the generic 400 Bad Request.

boki commented 7 years ago

Which it already does but I returned a hardcoded 400 for some reason...