When our users send
HTTP POST with incomplete information, our rpc handler sends:
mg_rpc_send_errorf(ri, 400, "Bad Request");
But as you can see above, the message
Bad Request shows up OK, but with the wrong error code. It is always
We always get
500 no matter what code we put in as the second argument to
mg_rpc_send_errorf(). Any help would be greatly appreciated!