[Catalyst] How to return a 401 from Catalyst

Jason Kohles email at jasonkohles.com
Tue Jan 29 20:49:10 GMT 2008


On Jan 29, 2008, at 3:18 AM, Kieren Diment wrote:

>
> On 27 Jan 2008, at 20:59, Ian Docherty wrote:
>
>>>
>>> p.s. I note that there is nothing in Test::WWW (that I can find)  
>>> that tests return status's such as 200, 401 etc.
>>>
>
>
> From perldoc Test::WWW::Mechanize:
...
> From perldoc WWW::Mechanize:
...
> from perldoc HTTP::Response:
...
> from HTTP::Headers
...
> .... never mind, you get the idea ...



Or you can take the easy approach, and stop with the first one...

$mech->link_status_is( 'http://localhost/private/', 401, "/private  
returns a 401" );

-- 
Jason Kohles, RHCA RHCDS RHCE
email at jasonkohles.com - http://www.jasonkohles.com/
"A witty saying proves nothing."  -- Voltaire





More information about the Catalyst mailing list