removing duplicated code, switching to OK/CREATED instead of strings
removing duplicated code, switching to OK/CREATED instead of strings

pyfarm/pyfarm-agent,guidow/pyfarm-agent,guidow/pyfarm-agent,pyfarm/pyfarm-agent,pyfarm/pyfarm-agent,guidow/pyfarm-agent