Status Header

1 view
Skip to first unread message

IT2BE

unread,
Feb 23, 2010, 11:58:54 AM2/23/10
to Bombax Support
Hi,

I think it was mentioned in other posts but I wanted to make sure that
it is not me.

When I set the status either like this:

[transport setHttpStatusCode:400];

or this:

<? [_ setHeader:@"Status" value:@"400"]; ?>

It is not really returned!

Thanks,

Marcel

Dominic Blais

unread,
Feb 23, 2010, 2:18:58 PM2/23/10
to bombax-...@googlegroups.com
It is necessary in 1.0.2 to set the 'Status' header (setHttpStatusCode is ignored by Nginx -- this is fixed in 1.1).  Please note that you can still return content when you set a status code.  This is the basis for custom 404 pages for example.  To check to see if the response code is being set correctly, you can use curl like this in Terminal.app:


Cheers,
Dominic Blais
COO & Hacker-in-Chief


--
You received this message because you are subscribed to the Google Groups "Bombax Support" group.
To post to this group, send email to bombax-...@googlegroups.com.
To unsubscribe from this group, send email to bombax-suppor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bombax-support?hl=en.


Marcel Trapman

unread,
Feb 23, 2010, 3:03:01 PM2/23/10
to bombax-...@googlegroups.com
Thanks for the curl tip, I was using http://gsitecrawler.com/tools/Server-Status.aspx to check it.
Reply all
Reply to author
Forward
0 new messages