I think I guessed the answer my own question... looks like this works:
web_response->setStatus(404, 'File Not Found')
-Trevor
on 2/18/12 5:40 PM Trevor Borgmeier wrote:
> How do I send a 404 header response code in lasso 9?
>
> I'm guessing it is via a method in the web_response type, but not sure...
>
> in LP8.5 I was using this:
>> $__http_header__ = string_replaceregexp(
>> $__http_header__,
>> -find='(^HTTP\\S+)\\s+.*?\r\n',
>> -replace='\\1 404 Not Found\r\n'
>> );
> -Trevor
>
>
> #############################################################
> This message is sent to you because you are subscribed to
> the mailing list Lasso
> Lasso@lists.lassosoft.com
> To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
> Send administrative queries to <Lasso-request@lists.lassosoft.com>
>
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
send 404 file not found response code
How do I send a 404 header response code in lasso 9?
I'm guessing it is via a method in the web_response type, but not sure...
in LP8.5 I was using this:
> $__http_header__ = string_replacerege...
Re: send 404 file not found response code
I think I guessed the answer my own question... looks like this works:
web_response->setStatus(404, 'File Not Found')
-Trevor
on 2/18/12 5:40 PM Trevor Borgmeier wrote:
> How do I send a...
To find out more about this list or how to subscribe - choose the 'i' next to the list name on the right, or click here for more information about LassoTalk