| 252 | * @returns {boolean} `true` if `error` is a connection failure error, `false` otherwise. |
| 253 | */ |
| 254 | export const isConnectionFailureError = error => |
| 255 | isPlainObject(error) && |
| 256 | hasValidDetails(error) && |
| 257 | Boolean(error.details[0]?.name?.startsWith('503_upstream_reset_before_response_started')) |
| 258 | |
| 259 | /** |
| 260 | * Returns whether `error` is a backend error with ID: 'pkg/web/oauthclient:refused'. |
no test coverage detected