Advertisement
longphp

[SW] Error response

May 5th, 2015
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2. "message": {
  3. "type": "error",
  4. "code": 1007,
  5. "msg": "Your request is pending."
  6. }
  7. }
  8.  
  9.  
  10. 1000 => array('type' => 'success', 'msg' => 'Success'),
  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. 1008 => array('type' => 'error', 'msg' => 'You have request friend from that user.'), // co yeu cau ket ban tu user khac
  20. 1009 => array('type' => 'error', 'msg' => 'Request friend not found.'), // khong tim thay yeu cau ket ban
  21. 1010 => array('type' => 'error', 'msg' => "You don't role."), // user khong co quyen
  22.  
  23. // USER
  24. 1011 => array('type' => 'error', 'msg' => "User was block"), // tai khoan da bi khoa
  25. 1012 => array('type' => 'error', 'msg' => "Access token facebook invalid"), // access token facebook khong dung
  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.  
  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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement