Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | import { HttpStatus } from '@nestjs/common'; export const ERRORS = { CUSTOMER_IS_EXISTED: { message: 'This customer already existed.', statusCode: HttpStatus.BAD_REQUEST, }, CUSTOMER_NOT_FOUND: { message: 'This customer is not found.', statusCode: HttpStatus.NOT_FOUND, }, CUSTOMER_CARD_NOT_FOUND: { message: 'This customer card is not found.', statusCode: HttpStatus.NOT_FOUND, }, }; export const AUTH_ERRORS = { USER_EXISTED: { message: 'User already existed.', statusCode: HttpStatus.BAD_REQUEST, }, USER_NOT_EXISTED: { message: 'User not existed.', statusCode: HttpStatus.NOT_FOUND, }, INVALID_PASSWORD: { message: 'password incorrect.', statusCode: HttpStatus.UNAUTHORIZED, }, ACCESS_TOKEN_NOT_FOUND: { message: 'access token not found.', statusCode: HttpStatus.UNAUTHORIZED, }, INVALID_ACCESS_TOKEN: { message: 'Invalid access token.', statusCode: HttpStatus.UNAUTHORIZED, }, ACCESS_TOKEN_EXPIRED: { message: 'Access token expired.', statusCode: HttpStatus.UNAUTHORIZED, }, }; |