static int ftp_type(FTPContext *s)
{
    const char *command = "TYPE I\r\n";
    const int type_codes[] = {200, 500, 504, 0}; /* 500, 504 are incorrect codes */

    if (ftp_send_command(s, command, type_codes, NULL) != 200)
        return AVERROR(EIO);

    return 0;
}