

'''NotFoundHandler
'''

from tornado.web import HTTPError

from twork_app.web.action.base import BaseHandler


class NotFoundHandler(BaseHandler):
    '''NotFoundHandler, RESTFUL SUPPORTED.
    '''

    ST_ITEM = 'NOT_FOUND'

    def post(self, *args, **kwargs):
        raise HTTPError(404)

    def delete(self, *args, **kwargs):
        raise HTTPError(404)

    def get(self, *args, **kwargs):
        raise HTTPError(404)



'''NotFoundHandler
'''

from tornado.web import HTTPError

from twork_app.web.action.base import BaseHandler


class NotFoundHandler(BaseHandler):
    '''NotFoundHandler, RESTFUL SUPPORTED.
    '''

    ST_ITEM = 'NOT_FOUND'

    def post(self, *args, **kwargs):
        raise HTTPError(404)

    def put(self, *args, **kwargs):
        raise HTTPError(404)

    def delete(self, *args, **kwargs):
        raise HTTPError(404)

    def get(self, *args, **kwargs):
        raise HTTPError(404)

Rewrite put method for not found handler
Rewrite put method for not found handler

  
  
  '''NotFoundHandler
  '''
  
  from tornado.web import HTTPError
  
  from twork_app.web.action.base import BaseHandler
  
  
  class NotFoundHandler(BaseHandler):
      '''NotFoundHandler, RESTFUL SUPPORTED.
      '''
  
      ST_ITEM = 'NOT_FOUND'
  
      def post(self, *args, **kwargs):
          raise HTTPError(404)
  
+     def put(self, *args, **kwargs):
+         raise HTTPError(404)
+ 
      def delete(self, *args, **kwargs):
          raise HTTPError(404)
  
      def get(self, *args, **kwargs):
          raise HTTPError(404)
  
Rewrite put method for not found handler
## Code Before:


'''NotFoundHandler
'''

from tornado.web import HTTPError

from twork_app.web.action.base import BaseHandler


class NotFoundHandler(BaseHandler):
    '''NotFoundHandler, RESTFUL SUPPORTED.
    '''

    ST_ITEM = 'NOT_FOUND'

    def post(self, *args, **kwargs):
        raise HTTPError(404)

    def delete(self, *args, **kwargs):
        raise HTTPError(404)

    def get(self, *args, **kwargs):
        raise HTTPError(404)

## Instruction:
Rewrite put method for not found handler
## Code After:


'''NotFoundHandler
'''

from tornado.web import HTTPError

from twork_app.web.action.base import BaseHandler


class NotFoundHandler(BaseHandler):
    '''NotFoundHandler, RESTFUL SUPPORTED.
    '''

    ST_ITEM = 'NOT_FOUND'

    def post(self, *args, **kwargs):
        raise HTTPError(404)

    def put(self, *args, **kwargs):
        raise HTTPError(404)

    def delete(self, *args, **kwargs):
        raise HTTPError(404)

    def get(self, *args, **kwargs):
        raise HTTPError(404)
