Handle AttributeError in case of other than GET or POST method