I make an HTTP call in flutter for checking the username and password on my login page. If I put the right username and password, I will get a status code of 200 OK! Everything is fine up to this point.
But if I put a wrong username and password, to get my status code 901 for that, flutter throws an exception: Invalid response status code! Maybe the HTTP package just works with the regular status codes (not the individual ones)?