sockjs/sockjs-protocol — pull request #62 by igm (2012-11-27 10:52:19+00:00)
Title: Update sockjs-protocol-dev.py

According to HTTP/1.1 the status code 500 means "Internal Server Error". It would make much more sense to use 400 instead, meaning "Bad Request" in case of invalid json, empty json or any other invalid request.