<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_paste(self, content):
 """Create a raw paste of the given content. Returns a URL to the paste, or raises a ``pasteraw.Error`` if something tragic happens instead. """

        r = requests.post(
            self.endpoint + '/pastes',
            data={'content': content},
            allow_redirects=False)

        if r.status_code == 302:
            return r.headers['Location']

        if r.status_code == 413:
            raise MaxLengthExceeded('%d bytes' % len(content))

        try:
            error_message = r.json()['error']
        except Exception:
            error_message = r.text

        raise UnexpectedError(error_message)