@Override
public LoginVerification getResponse(byte[] in, int code) {
if (code == 200) {
return Json.parse(in, this.getClass());
} else if (code == 404) {
throw new LoginFailedException("Invalid username and password combination.", code, in);
} else {
throw new RequestFailedException("Unknown error occurred while connecting to Heroku.", code, in);
}
}