text: class InvalidUsage(Exception):
      status_code = 404
      message = 'Instance Not Found!'
  
      def __init__(self, message=None, status_code=None):
          Exception.__init__(self)
          if message is not None:
              self.message = message
          if status_code is not None:
              self.status_code = status_code
  
      def to_dict(self):
          rv = dict(self.payload or ())
          rv['message'] = self.message
          return rv
  
  
  NotCorrectDirection = InvalidUsage("Direction is not correct!", 418)
  IdNotFound = InvalidUsage("Id not found!", 404)
  CoordinatesNotEmpty = InvalidUsage("Coordinates is not empty.", 421)
  CoordinatesNotValid = InvalidUsage("Coordinates not valid.", 422)
  ErrorOnBoardCoding = InvalidUsage("Not matching with robot values.", 423)
  ErrorBoardCreation = InvalidUsage("String size is not matching with board size", 424)
  BoardIsFull = InvalidUsage("Board is full, no emtpy spot! Attack!", 425)
  RobotNotFound = InvalidUsage("Robot not found on given coordinates.", 426)
  SizeIsNotValid = InvalidUsage("Size should be larger than 1!", 427)
  ServerError = InvalidUsage("Server Error!", 500)
  
  ExceptionResponses = {
      NotCorrectDirection.status_code: NotCorrectDirection.message,
      IdNotFound.status_code: IdNotFound.message,
      CoordinatesNotEmpty.status_code: CoordinatesNotEmpty.message,
      CoordinatesNotValid.status_code: CoordinatesNotValid.message,
      ErrorOnBoardCoding.status_code: ErrorOnBoardCoding.message,
      ErrorBoardCreation.status_code: ErrorBoardCreation.message,
      BoardIsFull.status_code: BoardIsFull.message,
      RobotNotFound.status_code: RobotNotFound.message,
      ServerError.status_code: ServerError.message
  }
  