e.append_to_message("
`create_commit` expects the repository to exist.")
raise
```

Args:
response (`Response`):
Response from the server.
endpoint_name (`str`, *optional*):
Name of the endpoint that has been called. If provided, the error message
will be more complete.

<Tip warning={true}>

Raises when the request has failed: