create the appropriate response return code.