Ed Avis <[EMAIL PROTECTED]> writes:

> At the moment if you use wwwoffle to get an ftp: URI with a
> nonexistent file (eg <ftp://ftp.rediris.es/nonexistent>) it returns a
> 503 WWWOFFLE Remote Host Error.  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.

It would be possible to replace the 550 error code with a 404 (page
not found web page from WWWOFFLE).  This would require adding a new
page template, and I don't think that this would necessarily give a
better user interface.


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).

But this unfortunately might mean more than one thing (which might all
translate) to a 404 page, but we can't be sure.  Also FTP servers have
been known to use incorrect error codes, so it is not sure that we
will get 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.

-- 
Andrew.
----------------------------------------------------------------------
Andrew M. Bishop                             [EMAIL PROTECTED]
                                      http://www.gedanken.demon.co.uk/

WWWOFFLE users page:
        http://www.gedanken.demon.co.uk/wwwoffle/version-2.8/user.html

Reply via email to