* Builds the status code error message from the response status, optional description, and request details. * * @stability unstable * @since 4.0.0
()
| 339 | * @since 4.0.0 |
| 340 | */ |
| 341 | override get message() { |
| 342 | const info = `${this.response.status} ${this.methodAndUrl}` |
| 343 | return formatMessage(formatReason(this._tag), this.description, info) |
| 344 | } |
| 345 | |
| 346 | override toJSON(): unknown { |
| 347 | return reasonToJSON(this, super.toJSON()) |
nothing calls this directly
no test coverage detected