Re: creating a 401
| From: | Ignacio Vazquez-Abrams | Date: | Thu, 21 Dec 2000 17:06:05 +0000 |
| Subject: | Re: creating a 401 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-31444@lists.php.net to get a copy of this message | ||
On Thu, 21 Dec 2000, Systeembeheer Max.nl wrote:
> Hi,
>
> How can I create the default errormessage for apache when a user doesn't
> give the right password.
> According to the manual it has to be
> Header("HTTP/1.0 401 Unauthorized");
> but this give you a loginscreen instead of some errormessage.
>
The status code you want is "403 Forbidden", not 401.
--
Ignacio Vazquez-Abrams <ignacio@openservices.net>