code: def _get_error_from_status(status_code, message):
      
      if status_code == 202:
        err = CraftAiLongRequestTimeOutError(message)
      elif status_code == 401 or status_code == 403:
        err = CraftAiCredentialsError(message)
      elif status_code == 400:
        err = CraftAiBadRequestError(message)
      elif status_code == 404:
        err = CraftAiNotFoundError(message)
      elif status_code == 413:
        err = CraftAiBadRequestError("Given payload is too large")
      elif status_code == 500:
        err = CraftAiInternalError(message)
      elif status_code == 503:
        err = CraftAiNetworkError("""Service momentarily unavailable, please try"""
                                  """again in a few minutes. If the problem """
                                  """persists please contact us at support@craft.ai""")
      elif status_code == 504:
        err = CraftAiBadRequestError("Request has timed out")
      else:
        err = CraftAiUnknownError(message)
  
      return err
docs: Give the error corresponding to the status code.
  
      :param int status_code: status code of the response to
      a request.
      :param str message: error message given by the response.
  
      :return: error corresponding to the status code.
      :rtype: Error.