(message = 'Invalid or missing token')
| 49 | } |
| 50 | |
| 51 | export function unauthorized(message = 'Invalid or missing token'): ApiError { |
| 52 | return new ApiError(ApiErrorCode.UNAUTHORIZED, message) |
| 53 | } |
| 54 | |
| 55 | export function sessionNotFound(id: string): ApiError { |
| 56 | return new ApiError(ApiErrorCode.SESSION_NOT_FOUND, `Session not found: ${id}`) |
no outgoing calls
no test coverage detected