Will no longer throw an exception when not recieving error code 0. Will just return JSON and leave it up to client to handle error.