<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def deny_access(self, request, **kwargs):
 """ Standard failure behaviour. Returns HTTP 403 (Forbidden) for non-GET requests. For GET requests, returns HTTP 302 (Redirect) pointing at either a URL specified in the class's unauthorised_redirect attribute, if one exists, or / if not. This version also adds a (translated) message if one is passed in. """

        # Raise a 403 for POST/DELETE etc.
        if request.method != 'GET':
            return HttpResponseForbidden()

        # Add a message, if one has been defined.
        message = self.get_access_denied_message(request)
        if message:
            messages.info(request, _(message))

        # Return a HTTP 302 redirect.
        redirect_url = self.get_unauthorised_redirect_url(request)
        return redirect_to_login(request.get_full_path(), login_url=redirect_url)