Refactor resource handling mechanism, add AcceptableResponse conception.