There's an exception handler for `KeyError` which makes sure an appropriate response is returned.