Code |
Message |
Cause |
Possible Frontend Message [Behavior] |
EC000 |
Internal error in API |
Internal error connecting the database |
"Oops! Looks like we hit a snag. Try closing the app and reopening it." |
EC001 |
User not found |
Token user id doesn't match our records |
"Sorry, We couldn't find your information!" |
R000 |
Fail |
The profile wasn't updated |
|
R111 |
Success |
The operation was successful |
"Your information was successfully updated." - [Return to previous screen] |
SC006 |
User no authorization |
The token role is not valid for using the API services |
"You have been logged out." - [Take the user to the login screen] |
SC014 |
Expired token |
The token has expired |
"You have been logged out." - [Take the user to the login screen] |
VID104 |
Invalid input for phone_code |
Phone_code is empty or it doesn't have only numbers |
"Please fill out this field" - "Phone code must have only numbers" |
VID105 |
Invalid input for phone_number |
Phone_number is empty or it doesn't have only numbers |
"Please fill out this field" - "Phone must have only numbers" |
VID106 |
Invalid input for first_name |
First name is empty or it doesn't have only letters |
"Please fill out this field" - "First name must have only letters" |
VID107 |
Invalid input for last_name |
Last name is empty or it doesn't have only letters |
"Please fill out this field" - "Last name must have only letters" |
VID144 |
Invalid input for languages |
Languages is not an array with 8 items or its items are not in [0,1]. At least one must be 1 |
"Please select at least one language" - [Call the API again using a valid array of languages] |
VID237 |
Invalid input for about |
About has only characters not allowed(" ", ', ’, ‘, ’, ", &, \, <, >, --) |
"Please enter a valid information About you" |
VID244 |
Invalid input for city |
City is empty or it doesn't have only letters |
"Please fill out this field" - "City must have only letters" |
VID245 |
Invalid input for hometown |
Hometown is empty or it doesn't have only letters |
"Please fill out this field" - "Hometown must have only letters" |
VID246 |
Invalid input for gender |
Gender is not in ["M", "F"] |
[Call the API again using a valid value for gender] |