> If that's what the question is, then the answer (without a change to > lift) is probably to alter LiftRules.convertResponse, which is where > the 200 response code looks to be generated from right now. It looks > like it wouldn't be trivial, but it would be doable.
Yes, that is what my question is, thanks for interpreting :) I was looking into this just to support solving my 404 issue, where I want to show a custom not found page with 404 status and no redirect. Tim's suggestion in the other thread looks promising so I am going to look more into that. - Alex > > -Ross > > On Dec 29, 2009, at 12:57 PM, Timothy Perrett wrote: > > > I would certainly recommend you take a closer look at the > > LiftResponse subclasses.... your other question in another thread > > (that I already answered) is equally solved by looking at > > LiftResponse. > > > It depends what type of response you want, but at a base level, > > InMemoryResponse will do what you want... as I said, you need to > > look at LiftResponse subclasses and find the one that suits your > > needs. > > > Cheers, Tim > > > On 29 Dec 2009, at 17:07, Alex Black wrote: > > >> In my snippet I'd like to change the response status code from the > >> default 200 to something else, say 201, or 404. (see > >>http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html). > > >> I see there is a method on S to change the doctype, but I don't see > >> one to change the status code. > > >> Thanks, > > >> - Alex > > >> -- > > >> You received this message because you are subscribed to the Google > >> Groups "Lift" group. > >> To post to this group, send email to [email protected]. > >> To unsubscribe from this group, send email to > >> [email protected] > >> . > >> For more options, visit this group > >> athttp://groups.google.com/group/liftweb?hl=en > >> . > > > -- > > > You received this message because you are subscribed to the Google > > Groups "Lift" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected] > > . > > For more options, visit this group > > athttp://groups.google.com/group/liftweb?hl=en > > . -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
