# Mã lỗi (Error code)

Khi có lỗi API trả về có dạng:

```
{
  success: false,
  message: <MESSAGE>
}
```

Trong đó MESSAGE được mô tả trong bảng dưới:

| MESSAGE              | Chú thích                       |
| -------------------- | ------------------------------- |
| APPID\_NOT\_FOUND    | appId không tìm thấy            |
| APPID\_MISSING       | Thiếu tham số appId             |
| HASH\_NOT\_MATCH     | Giá trị tham số hash không đúng |
| METHOD\_NOT\_SUPPORT | Phương thức không hỗ trợ        |

*(*

***Error Codes***\
*When an error occurs, the API returns a response in the following format:*

```json
jsonCopyEdit{
  success: false,
  message: <MESSAGE>
}
```

*Where **MESSAGE** is described in the table below:*

| MESSAGE              | Description                           |
| -------------------- | ------------------------------------- |
| APPID\_NOT\_FOUND    | The appId could not be found          |
| APPID\_MISSING       | The appId parameter is missing        |
| HASH\_NOT\_MATCH     | The hash parameter value is incorrect |
| METHOD\_NOT\_SUPPORT | The method is not supported           |

*)*
