ostinelli / misultin

Misultin (pronounced mee-sool-téen) is an Erlang library for building fast lightweight HTTP(S) servers, which also supports websockets.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Misultin doesn't support HTTP 422 error

aberman opened this issue · comments

If I respond with a 422, Misultin does not know how to throw this error back and I actually get a 200 instead.

Req:respond(422, [], "some validation error").

The response Misultin sends is:

Date: Sat, 26 Nov 2011 10:04:31 GMT
Server: misultin/0.9-dev
Connection: Close
Content-Length: 21

some validation error

It actually does this to the response status (debugged from Firebug): 200 422, which confuses the browser and it assumes a 200 OK.

Closed issue and moved to a different one with code attached