vinniefalco / BeastLounge

Massively Multiplayer Online Blackjack Game using Boost.Beast
http://beastlounge.com
Boost Software License 1.0
2 stars 0 forks source link

Implementation defined RPC error code range #21

Closed benstadin closed 4 years ago

benstadin commented 4 years ago

In rpc.cpp implementation defined error codes seem to be using a wrong range:

        if( ev >= -32099 &&
            ev <= -32099)
            return "An implementation defined server error was received";

It should be -32000 to -32099 [1].

[1] https://www.jsonrpc.org/specification#error_object