Fixed a compilation failure.

Hey,
       Thanks for pulling. The changes you made look sane. Just this minor compilation error.
About the error code: json rpc v2, send 200 OK with the error set inside the response.
If I want to set a Http error, I use 400, let me know, if you want to change that.