The server's machine-readable reason, e.g. `slug_taken`.
()
| 45 | |
| 46 | /** The server's machine-readable reason, e.g. `slug_taken`. */ |
| 47 | get code (): string | null { |
| 48 | const code = (this.body as { code?: unknown } | null)?.code |
| 49 | return typeof code === 'string' ? code : null |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | /** The request never reached a response: offline, DNS, CORS, aborted. */ |
nothing calls this directly
no outgoing calls
no test coverage detected