old_contents: from flask import Flask, jsonify, abort
  
  server = Flask(__name__)
  
  
  def get_relays(relays):
      return jsonify({"relays": relays})
  
  
  def get_relay(relays, relay_id):
      relay = [relay for relay in relays if relay["id"] == relay_id]
      if len(relay) == 0:
          abort(404)
      return jsonify({"relay": relay[0]})
  
new_contents: from flask import Flask, jsonify
  
  server = Flask(__name__)
  
  
  def get_relays(relays):
      return jsonify({"relays": relays}), 200
  
  
  def get_relay(relays, relay_name):
      code = 200
      try:
          relay = relays[relay_name]
      except KeyError:
          code = 404
          return "", code
  
      return jsonify({"relay": relay}), code
  
subject: Modify commit 51c50eaaf2e7374f3d6797b82df9604126f6000d