Response Codes
Flynn, Conor edited this page Dec 6, 2022
·
5 revisions
Clone this wiki locally
Introduction
Listed below are all response codes that can be returned by the engine. The codes can both be observed through communication within the engine as well as through responses from the REST API.
Code List
Code | Title | Description | Solution |
---|---|---|---|
0 | Blank | Return used for test cases and default applications. | This response should never be generated, if returned please contact developer. |
200 | Response OK | Request was performed successfully. | No action required. |
220 | Stream with given hash exists | A stream using the given credentials already exists, using the previously generated stream. | No action required. |
400 | Router not connected | Internal error with Router communication. | The Routers are on separate managers and cannot communicate packets between one another. Check implementation. |
404 | Destination not found | Router could not find another Router with the given tag to send the Packet to. |
Validate Router connections. Check implementation. |
405 | Subtag not found at destination | No subtag action was found at the Tag given. |
Validate Router with given Tag to make sure function with subtag is implemented properly. |
406 | Delimiter used in API request | An illicit API request is made using a delimiter for transferring the data to the engine. | Remove the delimiter from the API request. |
407 | Malformed packet | The Packet data parameter is malformed. | Make sure each data point passed to the packet contains a key and a value passed as: "key", "value" . |
410 | Router process failure | The Router could not process the given method. | Make sure the method contained in the Router is formatted properly. |
420 | Source does not exist | Requested data source does not exist. | The data source requested does not exist, validate the request and the implementation. |
421 | StreamKey does not exist | A Stream with the given key does not exist. | Make sure the stream is properly initialized prior to requesting. |
422 | Data source unable to authorize | The data source could not be authorized with the given credentials. | Make sure the authorization implementation is valid or the given authorization details are valid. |
423 | Stream is not ready to be executed | The stream cannot be used because it is not ready to be executed. | Check the implementation and the authorization parameters to make sure everything is valid. |
424 | Stream is already active | An active stream cannot be re-executed. | No action required. |
425 | Stream is not active | A non-active stream cannot be killed. | No action required. |
426 | Source does not contain subscription type. | Check the implementation and the request to make sure everything is valid. | |
427 | Irregular subscription response | The data source returned irregular message when attempting to subscribe to the service. | Check the service's status and the subscription implementation. |
428 | Request type does not exist | The data source does not have the given request type available. | Check the implementation and the request to make sure everything is valid. |
429 | Irregular request response | The data source returned an irregular message when attempting to request data from external service. | |
430 | Invalid stream hash | Stream key could not be generated from given properties. | Check the implementation of the stream key generation to make sure it is valid. |
440 | Source does not exist | Requested data source does not exist. | Check the implementation and the request to make sure everything is valid. |
441 | Data source is not ready | Data source is not ready to handle queries. | Validate the source is ready to be used. |
442 | Data source unable to be added | Data source could not be added. | Check the implementation and all external resources the local stream uses. |
443 | Data source already exists | Data source given given hash already exists. | No action required. |
444 | Failed to authorize data source | Data source could not be successfully authorized. | Check the implementation and authorization parameters to make sure everything is valid. |
445 | Invalid query | The query made to the local source could not be validated. | Make sure the query passed is in the proper format. |
446 | Data source does not contain queried data | The query passed does not return any stored data. | |
447 | Query had unexpected failure | Query could not be properly handled by local stream. | Check the implementation using the query. |
448 | Invalid state query or data instance | Local database determined query to be invalid or data to be invalid. | No action required. |
449 | Failed to push data to local stream | Local database could not push data to given location. |