Openflow - Bad gateway

Depends on what sdk or client you want to use.
here is an example using nodered