Erlang/OTP Forums

Author Message

<  Yaws mailing list  ~  Yaws: {status, "404"}

hknight
Posted: Wed Feb 24, 2010 12:53 am Reply with quote
User Joined: 07 Jan 2010 Posts: 11
I want to return a plain text 404 result.

This sends status 200 not 404:

<erl>
out(Arg) ->
{header, "HTTP/1.1 404 Not Found"},
{status, "404"},
{content, "text/plain", ""}.
</erl>
Not Found

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received from mailinglist
View user's profile Send private message
Guest
Posted: Wed Feb 24, 2010 1:05 am Reply with quote
Guest
On Tue, Feb 23, 2010 at 7:53 PM, Hank Knight <hknight555@gmail.com (hknight555@gmail.com)> wrote:
Quote:
I want to return a plain text 404 result.

This sends status 200 not 404:

<erl>
out(Arg) ->

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum