()
| 80 | } |
| 81 | |
| 82 | export const notAuthenticated = (): ServiceError => { |
| 83 | return { |
| 84 | statusCode: StatusCodes.UNAUTHORIZED, |
| 85 | errorCode: ErrorCode.NOT_AUTHENTICATED, |
| 86 | message: "Not authenticated", |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | export const notFound = (message?: string): ServiceError => { |
| 91 | return { |
no outgoing calls
no test coverage detected