add test for arbitrary error codes and update other tests to allow for arbitrary codes
update Error:setCode to accept arbitrary error codes

integers and strings are accepted as arguments, but strings need to be numerical.
Merge branch 'develop' into fix/json-rpc-error-codes: update code from upstream
fix CS
Merge pull request #5933 from gkralik/fix/json-rpc-error-codes

Allow arbitrary error codes in JSON RPC server
fix failing testHandleRequestWithExceptionShouldReturnErrorResponse

if an Exception is thrown without setting a code manually, it defaults to 0. change Error:setCode to set the code to -32000 (ERROR_OTHER) if this is the case.
Merge pull request #5933 from gkralik/fix/json-rpc-error-codes

Allow arbitrary error codes in JSON RPC server
[#5933] CS fixes

- braces
[#5933] Use dataProvider for new test
Merge branch 'feature/5933' into develop

Close #5933