# configuration/strings/route.strings.ts

> 15 lines of code and 6 definitions.

Tree: Project Scripts
Language: typescript
Layer: product
Canonical: https://banes-lab.com/anatomy/scripts#file-scripts-configuration-strings-route-strings-ts
Source text: https://banes-lab.com/source/scripts/configuration/strings/route.strings.ts.txt

Listed in [configuration/strings](https://banes-lab.com/api/source/scripts/configuration/strings.md), after [configuration/strings/rate.strings.ts](https://banes-lab.com/source/scripts/configuration/strings/rate.strings.ts.md) and before [configuration/strings/server.strings.ts](https://banes-lab.com/source/scripts/configuration/strings/server.strings.ts.md).

## Definitions

- `neverListened` (lexical_declaration, line 6, exported)
- `listeningAfter` (lexical_declaration, line 10, exported)
- `portStillHeld` (lexical_declaration, line 14, exported)
- `portHeld` (lexical_declaration, line 18, exported)
- `REFUSED_ARGUMENTS` (lexical_declaration, line 1, exported)
- `NO_BROWSER` (lexical_declaration, line 4, exported)

## Contained in

- [configuration/strings](https://banes-lab.com/anatomy/scripts/folder-scripts-configuration-strings.md)

## Used by

- [core/coordinators/route.coordinator.ts](https://banes-lab.com/source/scripts/core/coordinators/route.coordinator.ts.md)

## Linked from

- [core/coordinators](https://banes-lab.com/anatomy/scripts/folder-scripts-core-coordinators.md)

## Source

```typescript
export const REFUSED_ARGUMENTS =
    "REFUSED — at least one --route, each starting with /, and an --out-dir are required; a shell that rewrites /route into a file path must be told not to\n";

export const NO_BROWSER = "capture: no browser binary found; pass --browser <path to chrome or edge>\n";

export const neverListened = function neverListened(port: number): string {
    return `capture: the dev server never listened on port ${String(port)}\n`;
};

export const listeningAfter = function listeningAfter(ms: number): string {
    return `capture: dev server listening after ${String(ms)} ms\n`;
};

export const portStillHeld = function portStillHeld(port: number): string {
    return `capture: port ${String(port)} is still held after stopping the server it started\n`;
};

export const portHeld = function portHeld(port: number, holders: readonly string[]): string {
    return `capture: REFUSED — port ${String(port)} is held by pid ${holders.join(", ")}; stop that server first, this tool stops only a server it started\n`;
};
```
