Re: Error code returned for nonexistent ftp file

Ed Avis <[email protected]>
Newsgroups gmane.network.wwwoffle.user
Message-ID <[email protected]>
amb-Uxr6IM1mbv2TY6FTCsQk+9Bc4/[email protected] (Andrew
M. Bishop) writes:

>>I think it would be better to translate 'no such file or directory'
>>from the ftp server into a 404 Not Found, or at least a 5xx WWWOFFLE
>>File Not Found.

>In the FTP specification it says that the error code for this is 550.
>
>        550 Requested action not taken.
>             File unavailable (e.g., file not found, no access).

I assume this is an FTP error code of 550, which doesn't translate to
an http response 550...

>The error back from the FTP server *should* contain a textual error
>message that explains the reason for the failure.  The standard error
>page that WWWOFFLE uses for an FTP server that sends a negative
>response is the "Remote Host Error" page with the text of the error
>message which at least adds some consistency.

If you don't think it is worth the effort of parsing the message from
the FTP server then fair enough.

-- 
Ed Avis <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.