Corrected CURL's HTTP code interpretation for FTP urls (closes #4184)