@iotize/tap
Version:
IoTize Device client for Javascript
171 lines (170 loc) • 4.7 kB
TypeScript
/**
* Generated file. Do not edit
*/
export declare class ResultCode {
/**
* The request was successful
* hex: 0x0 / decimal: 0
*/
static OK: number;
/**
* Create request was successful
* hex: 0x41 / decimal: 65
*/
static CREATED: number;
/**
* Delete request was successful
* hex: 0x42 / decimal: 66
*/
static DELETED: number;
/**
* Update request was successful
* hex: 0x44 / decimal: 68
*/
static CHANGED: number;
/**
* The server has fulfilled the request and sent a response
* hex: 0x45 / decimal: 69
*/
static CONTENT: number;
/**
* The server is busy
* hex: 0x46 / decimal: 70
*/
static BUSY: number;
/**
* Bad request. Meaning device cannot understand your request.
* hex: 0x80 / decimal: 128
*/
static BAD_REQUEST: number;
/**
* Current user is not authorized to access this ressource
* hex: 0x81 / decimal: 129
*/
static UNAUTHORIZED: number;
/**
* The server has not found anything matching the Request
* hex: 0x84 / decimal: 132
*/
static NOT_FOUND: number;
/**
* Current user is not authorized to access this ressource
* hex: 0x85 / decimal: 133
*/
static METHOD_NOT_ALLOWED: number;
/**
* Given parameters are not acceptable
* hex: 0x86 / decimal: 134
*/
static NOT_ACCEPTABLE: number;
/**
* Given resource is not available with the current TAP configuration.
* hex: 0x87 / decimal: 135
*/
static RESOURCE_LOCKED: number;
/**
* Internal server error
* hex: 0xa0 / decimal: 160
*/
static INTERNAL_SERVER_ERROR: number;
/**
* This resource has not been implemented yet
* hex: 0xa1 / decimal: 161
*/
static NOT_IMPLEMENTED: number;
/**
* Service is currently unavailable. Try again later.
* hex: 0xa3 / decimal: 163
*/
static SERVICE_UNAVAILABLE: number;
/**
* Writing non volatible memory failed
* hex: 0xa4 / decimal: 164
*/
static NVM_ERROR: number;
/**
* Tap was not able to connect to the target
* hex: 0xa5 / decimal: 165
*/
static UNABLE_TO_CONNECT_TO_TARGET: number;
/**
* Target power failure
* hex: 0xa6 / decimal: 166
*/
static TARGET_POWER_FAILURE: number;
/**
* Non volatile memory is full
* hex: 0xa7 / decimal: 167
*/
static NVM_FULL: number;
/**
* It means we can't access this resource because someone is already connected to this device and he has the priority over us.
* hex: 0xa8 / decimal: 168
*/
static DEVICE_UNAVAILABLE: number;
/**
* Response is bigger than you current protocol limit
* hex: 0xa9 / decimal: 169
*/
static RESPONSE_TOO_LARGE: number;
/**
* Target protocol error
* hex: 0xb0 / decimal: 176
*/
static TARGET_PROTOCOL_ERROR: number;
/**
* Target protocol is busy
* hex: 0xb1 / decimal: 177
*/
static TARGET_PROTOCOL_BUSY: number;
/**
* Target protocol error
* hex: 0xb2 / decimal: 178
*/
static TARGET_PROTOCOL_REAL: number;
/**
* Target protocol parameters are not valid
* hex: 0xb3 / decimal: 179
*/
static TARGET_PROTOCOL_WRONG_PARAM: number;
/**
* Target protocol is forbidden
* hex: 0xb4 / decimal: 180
*/
static TARGET_PROTOCOL_FORBIDDEN: number;
/**
* Target protocol data are not the one expected. For example a CRC error.
* hex: 0xb5 / decimal: 181
*/
static TARGET_PROTOCOL_DATA: number;
/**
* Target protocol communication error
* hex: 0xb6 / decimal: 182
*/
static TARGET_PROTOCOL_COM: number;
/**
* Target protocol lost communication
* hex: 0xb7 / decimal: 183
*/
static TARGET_PROTOCOL_LOST_COM: number;
/**
* Target protocol invalid parameter
* hex: 0xb8 / decimal: 184
*/
static TARGET_PROTOCOL_PARAM: number;
/**
* Internal error with target communication
* hex: 0xb9 / decimal: 185
*/
static TARGET_PROTOCOL_INT: number;
/**
* Operation aborted because one of the command did not return the expected result code.
* hex: 0xba / decimal: 186
*/
static TARGET_PROTOCOL_ABORT: number;
/**
* Target protocol is not implemented
* hex: 0xbb / decimal: 187
*/
static TARGET_PROTOCOL_NOT_IMPLEMENTED: number;
}