Bug with non existing code in v3.1
Calling the v1.3 endpoint with a non existing code - where the code is 2 or 3 characters long - returns status code 200 and empty array. Expected behaviour would be 400 status and this reponse object: {"status":400,"message":"Bad Request"} Examples:
- https://restcountries.com/v3.1/alpha/h (non existing code with length 1, works)
- https://restcountries.com/v3.1/alpha/hh (non existing code with length 2, does not work)
- https://restcountries.com/v3.1/alpha/hhh (non existing code with length 3, does not work)
- https://restcountries.com/v3.1/alpha/hhhh (non existing code with length 4, works)
Was flagged for spam when I tried to post if t publically.