add response entity to check error code