doc/hook-perl - response codes for authentication

Russ Allbery rra at stanford.edu
Fri Dec 26 04:20:38 UTC 2008


Russ Allbery <rra at stanford.edu> writes:
> Alexander Bartolich <alexander.bartolich at gmx.at> writes:

>> Anyway, the reason I'm reading the RFC is because I search for an
>> appropriate way to distinguish internal errors (e.g. "Can't connect to
>> MY-SQL") from authentication errors. Any suggestions?

> That's what 403 is for.  As a generic response code, you can return it for
> any command.

>    If the server experiences an internal fault or problem that means it
>    is unable to carry out the command (for example, a necessary file is
>    missing or a necessary service could not be contacted), the response
>    code 403 MUST be returned.

Actually, given that nnrpd closes the connection after a non-281 response,
400 is probably even better.

-- 
Russ Allbery (rra at stanford.edu)             <http://www.eyrie.org/~eagle/>

    Please send questions to the list rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.



More information about the inn-workers mailing list