travel-codes

1.0.1 • Public • Published

Travel codes

Response codes in the Travel app REST API

MISSING_TEMPORARY_TOKEN : code: AUTH0001 The field temporary_token is not present in the body request.

MISSING_METHOD_AUTH : code: AUTH0002 The field method is not present in ythe body request.

NOT_ALLOW_AUTH_METHOD : code: AUTH0003 the method sent in the body request is not allowed, the methods allow are ('facebook', 'firebase')

AUTH_SUCCESS_REGISTERED_USER : code: AUTH0004 The user is logged successfully and is already registered

AUTH_SUCCESS_NOT_REGISTERED_USER : code: AUTH0005 The user is logged successfully and is not registered

INVALID_TOKEN : code: AUTH0006 The token is not valid

NO_BODY_PRESENT : code: HTTP0001 The body is not present in the request

PARSE_PARAMS : code: PARAMS_ENCODE0001 Error during parse of http params

SIGN_UP_MISSING_PARAMS : code: SIGNUP00002 No present requested params to signup

SIGN_UP_ERROR_VERIFYING_EMAIL : code: SIGNUP00003 Error trying to verify email in DB

SIGN_UP_DUPLICATE_EMAIL : code: SIGNUP00004 Email duplicated

SIGN_UP_ERROR_VERIFYING_PHONE : code: SIGNUP00005 Error trying to verify phone in DB

SIGN_UP_DUPLICATE_PHONE : code: SIGNUP00006 Phone duplicated

SIGN_UP_DUPLICATE_ROW : code: SIGNUP00007 Error of duplicate entry

SIGN_UP_DB_ERROR : code: SIGNUP00008 Generic error DB in transaction

SIGN_UP_SUCCESS : code: SIGNUP00009 User Registered successfully

SIGN_UP_MISSING_TOKEN_PARAMS : code: SIGNUP00010 Params required in jwt are not present.

RECOVERY_MISSING_PARAMS : code: RECOVERY0001 Params required in recovery http get request are not present.

RECOVERY_ERROR_VERIFYING_EMAIL : code: RECOVERY0002 Internal server error verifying Email

RECOVERY_EMAIL_DOESNT_EXIST : code: RECOVERY0003 Email doesnt exist in DB

RECOVERY_EMAIL_SENT : code: RECOVERY0004 Recovery email sent succesfully

Readme

Keywords

Package Sidebar

Install

npm i travel-codes

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

3.35 kB

Total Files

3

Last publish

Collaborators

  • aljomor