Re: Udfordring

[email protected] ("Jonas B. Nielsen")
Newsgroups perl.copenhagen
Message-ID <[email protected]>
Hej Keli,

Should be doable:

I Catalyst kontekst:

	$c->response->headers->header( 'X-MyApp-ErrorCode' => $error_code );

Ref: http://search.cpan.org/~flora/Catalyst-Runtime-5.80023/lib/Catalyst/Response.pm#$res-%3Eheader

jonasbn
--
AIM: BjonasN      Gtalk: [email protected]
ICQ: 62401545   MSN: [email protected]
twitter: jonasbn   blog: http://e-diot.dk/

On 12/05/2010, at 00.27, Keli Hlodversson wrote:

> Jeg ville sende en standard HTTP fejlkode og tilføje en custom response header a la:
> 	X-MyApp-ErrorCode: et-eller-andet
> 
> 
> On 11. maj 2010, at 21.43, Jonas B. Nielsen wrote:
>> Protokollen implementerer en række egne fejlkoder som går udover hvad som er defineret i HTTP.
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.