added statusCode config
remove a log state
added a util for response