Replace `inError` by `details || inError` so that human-readable details are preferred over HTTP statusCode, when available.