old_contents: #!/usr/bin/python
  """An example demonstrating the client-side usage
  of the cretificate request API endpoint.
  """
  
  import requests, sys
  
  url = 'https://spire.cloudfleet.io/dashboard/blimp/api/request_cert'
  domain = sys.argv[1]
  secret = sys.argv[2]
  file_path = sys.argv[3]
  print('requesting: ' + url)
  files = {'signature': open(file_path, 'rb')}
  r = requests.post(url, {'domain': domain, 'secret': secret}, files=files)
  
  if r.status_code < 400:
      quit(0)
  else:
      quit(1)
  
new_contents: #!/usr/bin/python
  """An example demonstrating the client-side usage
  of the cretificate request API endpoint.
  """
  
  import requests, sys
  
  url = 'https://spire.cloudfleet.io/dashboard/blimp/api/request_cert'
  domain = sys.argv[1]
  secret = sys.argv[2]
  file_path = sys.argv[3]
  print('requesting: ' + url)
  files = {'signature': open(file_path, 'rb')}
  r = requests.post(url, {'domain': domain, 'secret': secret}, files=files)
  
  #if r.status_code < 400: # how it should be
  if r.json()["success"]:
      print('Success: %s' % r.text)
      quit(0)
  else:
      print('Error: %s' % r.text)
      quit(1)
  
subject: check json response instead of status_code