View difference between Paste ID: 37wgGLKz and 7z0SNwef
SHOW: | | - or go back to the newest paste.
1
{
2
    "message": {
3
        "type": "error",
4-
        "code": 1001,
4+
        "code": 1007,
5-
        "msg": "Error"
5+
        "msg": "Your request is pending."
6-
    },
6+
7-
    "data": {
7+
8-
        "error": [
8+
9-
            "Please enter email.",						// thiếu email
9+
10-
            "Please enter password."   // thiếu password
10+
1000 => array('type' => 'success', 'msg' => 'Success'),
11-
        ]
11+
        1001 => array('type' => 'error', 'msg' => 'Error'),
12
        1002 => array('type' => 'error', 'msg' => 'Request timeout.'),
13
        1003 => array('type' => 'error', 'msg' => 'Invalid username or password.'),
14
        1004 => array('type' => 'error', 'msg' => 'User not found.'),
15
        // FRIEND
16
        1005 => array('type' => 'error', 'msg' => 'You was befriended.'), // da tro thanh ban cua nhau
17
        1006 => array('type' => 'error', 'msg' => 'You was disapprove.'), // ban khong duoc dong y ket ban
18
        1007 => array('type' => 'error', 'msg' => 'Your request is pending.'), // yeu cau dang cho duyet
19-
        "code": 1001,
19+
        1008 => array('type' => 'error', 'msg' => 'You have request friend from that user.'), // co yeu cau ket ban tu user khac
20-
        "msg": "Error"
20+
        1009 => array('type' => 'error', 'msg' => 'Request friend not found.'), // khong tim thay yeu cau ket ban
21-
    },
21+
        1010 => array('type' => 'error', 'msg' => "You don't role."), // user khong co quyen 
22-
    "data": {
22+
        
23-
        "error": [
23+
        // USER
24-
            "fos_user.username.already_used", // trùng username đã đăng ký
24+
        1011 => array('type' => 'error', 'msg' => "User was block"), // tai khoan da bi khoa
25-
            "fos_user.email.already_used"					// trùng email đã đăng ký
25+
        1012 => array('type' => 'error', 'msg' => "Access token facebook invalid"), // access token facebook khong dung
26-
        ]
26+
        1013 => array('type' => 'error', 'msg' => "Error authorize facebook"), // loi khi request user tu facebook
27
        1014 => array('type' => 'error', 'msg' => "Require access token param."), // thieu access_token params
28-
}
28+
        
29
        // GEO
30
        1015 => array('type' => 'error', 'msg' => "Longitude or Latitude params invalid"), // loi khi request user tu facebook
31
32
        // CREATE WAVE
33
        1016 => array('type' => 'error', 'msg' => "Title params invalid."), // loi thieu params title
34
        1017 => array('type' => 'error', 'msg' => "Wave not found."), // loi thieu params title
35
36
        // API TOKEN
37
        1018 => array('type' => 'error', 'msg' => "User token invalid."), // loi thieu user token hoac user token het han
38
39
        1019 => array('type' => 'error', 'msg' => "Can't get email from facebook."), // loi facebook user khong lay dc email
40
41
        1020 => array('type' => 'error', 'msg' => "Type params invalid."), // loi thieu param type
42
        1021 => array('type' => 'error', 'msg' => "Image params invalid."), // loi thieu param image
43
        1022 => array('type' => 'error', 'msg' => "Video params invalid."), // loi thieu param video
44
45
        // RESET PASSWORD
46
        1023 => array('type' => 'error', 'msg' => "Email not existed."), // loi email khong ton tai
47
        1024 => array('type' => 'success', 'msg' => "Success!"), // reset password thanh cong, da goi mail toi user
48
49
        // GHOST MODE
50
        1025 => array('type' => 'error', 'msg' => "You current ghost mode!"), // user dang o che do ghost( an khong duoc tao wave)